tile_grid_bboxes: tile_grid_bboxes

Description Usage Arguments Details Value Examples

Description

Get tile grid bounding boxes

Usage

1
tile_grid_bboxes(tile_grid)

Arguments

tile_grid

a tile_grid object, likely returned from 'bbox_to_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).

Value

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

Examples

1
2
3
4
5
6
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)

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