get_qk_coord {quadkeyr} | R Documentation |
Get lat/long coordinates from the QuadKey
Description
Reads the QuadKey as a string and extracts the lat/long coordinates of the upper-left corner of the QuadKey.
Usage
get_qk_coord(data)
Arguments
data |
A dataframe with a quadkey column. |
Value
A sf
POINT data.frame containing the tiles XY coordinates
(tileX
, tileY
), the QuadKeys (quadkey
), and a geometry
column.
See Also
Examples
grid <- create_qk_grid(
xmin = -59,
xmax = -40,
ymin = -38,
ymax = -20,
zoom = 6
)
# quadkey column in grid$data converted to geographic coordinates
grid_coords <- get_qk_coord(data = grid$data)
plot(grid_coords)
[Package quadkeyr version 0.1.0 Index]