Public API#
This page documents the public objects defined in osbng.__all__ that are imported
via:
from osbng import *
Included are the core functions for creating BNGReference objects from
coordinates or Shapely geometry objects, along with the main class used across the
package. Also included are grid square data covering the BNG index system bounds as
iterators at 100km, 50km, 10km, 5km and 1km resolutions.
Additional functionality that works with BNGReference instances is
documented in the respective module pages and can be imported from osbng modules
directly. For example:
from osbng.bng_reference import BNGReference
from osbng.hierarchy import bng_to_children
from osbng.indexing import bng_to_bbox
from osbng.indexing_gpd import gdf_to_bng_intersection_explode
from osbng.traversal import bng_kdisc
Public API reference. This links the canonical module documentation for each object:
BNG index system bounding box. |
|
Supported BNG resolutions and mappings. |
|
100km BNG square letter prefixes. |
|
BNG ordinal direction suffixes. |
|
Initialises a |
|
Iterator of GeoJSON-like Features for 100km BNG grid squares within |
|
Iterator of GeoJSON-like Features for 50km BNG grid squares within |
|
Iterator of GeoJSON-like Features for 10km BNG grid squares within |
|
Iterator of GeoJSON-like Features for all 5km BNG grid squares within |
|
Iterator of GeoJSON-like Features for all 1km BNG grid squares within |
|
Returns a |
|
Returns a |
|
Returns an iterator of BNGReference Features given a bounding box and resolution. |
|
Returns a |
|
Returns a |