Learn R Programming

slippymath (version 0.3.1)

tile_grid_bboxes: tile_grid_bboxes

Description

Get tile grid bounding boxes

Usage

tile_grid_bboxes(tile_grid)

Arguments

tile_grid

a tile_grid object, likely returned from `bbox_to_tile_grid`

Value

a list of sf bounding box objects in the corresponding order to the tiles in `tile_grid`

Details

Given an tile_grid object like that returned from `bbox_to_tile_grid`, return a list of sf style bounding box objects, one for each tile in the grid, in the same order as tiles in `tile_grid$tiles`.

The bounding box units are metres in the EPSG:3857 coordinate reference system (Web Mercator).

Examples

Run this code
# NOT RUN {
tibrogargan<- c(xmin = 152.938485, ymin = -26.93345, xmax = 152.956467, 
               ymax = -26.921463)

tibrogargan_grid <- bbox_to_tile_grid(tibrogargan, zoom = 15)

tile_grid_bboxes(tibrogargan_grid)
# }

Run the code above in your browser using DataLab