Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Converts british national grid (OSBG36) to lat lon (WGS84) and vice versa.

Project description

BNG ⇄ LatLon

Converts british national grid (OSBG36) to lat lon (WGS84) and vice versa.

Originally authored by Hannah Fry.

NEW! importable, installable, PEP8 styled, pure python and doctested

Installation

Get the latest stable release from PyPi:

pip install bng_latlon

Usage

>>> from bng_to_latlon import OSGB36toWGS84
>>> OSGB36toWGS84(538890, 177320)
(51.47779538331092, -0.0014016837826672265)
...
>>> from latlon_to_bng import WGS84toOSGB36
>>> WGS84toOSGB36(51.4778, -0.0014)
(538890.1053365842, 177320.49650700082)

To Do

  • notify devs, share
  • common importable constants and separate util functions (Helmut transform…)
  • CLI to accept filename or value pair as args

Project details


Release history Release notifications

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bng-latlon, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size bng_latlon-1.0.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page