osbng.bng_reference.BNGReference.bng_to_bbox#
- BNGReference.bng_to_bbox() tuple[int, int, int, int][source]#
Returns grid square bounding box coordinates of this
BNGReference.Example
>>> BNGReference("SU").bng_to_bbox() (400000, 100000, 500000, 200000) >>> BNGReference("SU 3 1").bng_to_bbox() (430000, 110000, 440000, 120000) >>> BNGReference("SU 3 1 NE").bng_to_bbox() (435000, 115000, 440000, 120000) >>> BNGReference("SU 37289 15541").bng_to_bbox() (437289, 115541, 437290, 115542)
See also
The equivalent
osbng.indexing.bng_to_bbox()function.