Generate a spatial data frame of BNG references and grid square geometries.
Usage
bng_grid_100km(xmin, ymin, xmax, ymax, ...)
bng_grid_50km(xmin, ymin, xmax, ymax, ...)
bng_grid_10km(xmin, ymin, xmax, ymax, ...)
bng_grid_5km(xmin, ymin, xmax, ymax, ...)
bng_grid_1km(xmin, ymin, xmax, ymax, ...)
Value
Data frame object of type sf with the grid reference as a
BNGReference object and the grid square polygon geometry.
Arguments
xmin, ymin, xmax, ymax
Optional bounding box coordinates.
...
Additional arguments. Not currently used.
Details
These convenience functions generate a spatial data frame of BNG references
and grid square geometries at pre-determined resolutions. This function
combines bbox_to_bng() and bng_to_grid_geom() into a data
frame. Optionally, the grid can be for a defined bounding box area of
interest. If the bounding box is omitted, then all grid squares within the
valid bounds of the BNG are returned.
Only selected resolutions are provided to avoid excessively large data
frames. For additional spatial data files of all resolutions, please see the
osbng-grids GitHub repo.