Skip to contents

BNG Reference Objects

Functions that create and access BNGReference objects.

Indexing

Functions that index and work with coordinates and geometries against the BNG index system.

bng_to_xy() xy_to_bng()
Convert BNG References
bbox_to_bng() bng_to_bbox() bng_to_grid_geom()
Convert bounding boxes
geom_to_bng() geom_to_bng_intersection()
Spatial index for geometries
geom_to_bng_intersection_explode()
Spatial data frame for indexed geometries

Hierarchy

Functions that navigate the hierarchical structure of the BNG index system.

bng_to_children() bng_to_parent()
Navigate the British National Grid hierarchy

Traversal

Functions for traversing and calculating distances within the BNG index system.

bng_kring() bng_kdisc()
Spatial neighbourhoods in the British National Grid index system
bng_neighbours() bng_is_neighbour()
Identify neighbouring grid squares
bng_dwithin() bng_distance()
Distance calculations

Grids

Functions to generate BNG grid square data within specified bounds.

Utilities

is_valid_bng() is_valid_bng_resolution()
Check validity of a BNG Reference
get_bng_resolution() get_bng_resolution_string() list_bng_resolution()
BNG reference resolution
list_bng_prefixes() list_bng_bounds()
List the components of the British National Grid
Regions
Region Boundaries for London