tile_bbox: tile_bbox

Description Usage Arguments Details Value Examples

Description

Calculate the bounding box for a tile in latitude and longitude

Usage

1
tile_bbox(x, y, zoom)

Arguments

x

slippy map tile x number

y

slippy map tile y number

zoom

zoom level for tile

Details

Given a slippy maps tile specified by 'x', 'y', and 'zoom', return the an 'sf' bounding box object for the tile with units in metres using the EPSG:3857 coordinate reference system (Web Mercator).

Value

an sf bbox object.

Examples

1
2
## return an sf style bbox object in with epsg and proj4string
tile_bbox(x = 30304, y = 18929, zoom = 15)

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