get_qk_coord | R Documentation |
Reads the QuadKey as a string and extracts the lat/long coordinates of the upper-left corner of the QuadKey.
get_qk_coord(data)
data |
A dataframe with a quadkey column. |
A sf
POINT data.frame containing the tiles XY coordinates
(tileX
, tileY
), the QuadKeys (quadkey
), and a geometry
column.
quadkey_to_tileXY
tileXY_to_pixelXY
pixelXY_to_latlong
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.