osgb osgb

A python module for interpreting and Ordnance Survey references and interconversion to longitude-latitudes.

Many geospatial locations within the UK are given with the Ordnance Survey system. While common and highly accurate, this coordinate system is peculiar to the UK and incompatiable with many modern cartography tools. This module presents functions for converting between these and the most widely spread longitude-latitude system.


osgb provides two primary functions, osgb_to_lonlat and lonlat_to_osgb, which are imported into the top of this package. Some of the intermediate conversions are provided for those who may find them useful (e.g. for working in eastings-northings).

Caveats and bugs

By convention, longitude and latitude are referred and used in that order.

Note that the lon-lats are returned are OSGB36 (not the more modern WGS84), as that is the system OSGB is based upon. The difference should be minimal (i.e. less than 100 metres). For example, the OS grid reference TM114 525 (just outside Ipswich) should convert to the lon-lat 1.088975 52.129892 in OSGB36, which is 1.087203 52.130350 in WGS84.



Downloadosgb 0.2 Beta

Initial release. Read more

Compatibility: None,

Project information

Project manager:
Paul-Michael Agapow

Software category


Help improving
help Report bugs and suggest additional features to the project manager.

No screenshots added yet
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>