grid_to_polygon: Convert a grid of QuadKeys to square polygons
Description
The main argument of this function, the grid of
geographic coordinates (lat/long WG84) represents the upper-left
corner of the QuadKey.
To transform these coordinates into square polygons, the function
supplements the grid by adding a row and column of tiles. These points
introduce QuadKeys located at the border of the area using the internal
function complete_grid_for_polygons().
The function builds the polygons using all the points of the grid.
Note that it's possible to associate each QuadKey with its square polygon.
Usage
grid_to_polygon(data)
Value
A sf POLYGON data.frame with a quadkey column.
Arguments
data
A sf POINT data.frame with a quadkey and geometry column.