bbox_tile_query: bbox_tile_query

Description Usage Arguments Details Value Examples

Description

Bounding box tile query

Usage

1
bbox_tile_query(bbox, zoom_levels = 2:18)

Arguments

bbox

a bbox object created by 'sf::st_bbox', or a vector with names 'xmin', 'xmax', 'ymin', 'ymax'

zoom_levels

a numeric vector of zoom levels to calculate tile usage for.

Details

Determines how many tiles the bounding box would occupy for a range of zooms. Useful for working out what is a reasonable zoom to work at. Each tile is a separate request from the server.

Tiles are typically 256x256 pixels and are tens of Kb in size, you can get some sense of the data from the query also.

Value

a data frame containing tile usage information for the bounding box at each zoom level.

Examples

1
2
3
4
tibrogargan<- c(xmin = 152.938485, ymin = -26.93345, xmax = 152.956467, 
               ymax = -26.921463)

bbox_tile_query(tibrogargan)

slippymath documentation built on June 28, 2019, 5:04 p.m.