Fast lon, lat to BNG conversion, and vice versa
The first two methods return Easting, Northing tuples (in a list in the case of the latter), while the third method returns a list of lon, lat tuples.
Installation
Usage
from convertbng.util import convertbng, convertbng_list, convertlonlat_list
# convert a single value
res = convertbng(lon, lat)
# convert lists of longitude and latitude values to BNG Eastings and Northings
lons = [lon1, lon2, lon3]
lats = [lat1, lat2, lat3]
res_list = convertbng_list(lons, lats)
# convert lists of BNG Eastings and Northings to longitude, latitude
eastings = [easting1, easting2, easting3]
northings = [northing1, northing2, northing3]
res_list_en = convertlonlat_list(eastings, northings)
# assumes numpy imported as np
lons_np = np.array(lons)
lats_np = np.array(lats)
res_list_np = convertbng_list(lons_np, lats_np)
Testing
Run nosetests (requires Nose)
Metadata
Release files for convertbng 0.1.21
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| convertbng-0.1.21.tar.gz | 1.4 MB | Without provenance | Details for convertbng-0.1.21.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| convertbng-0.1.21-cp27-none-macosx_10_6_intel.whl | CPython 2.7 | none | macOS 10.6+ Intel (x86-64, i386) | Details for convertbng-0.1.21-cp27-none-macosx_10_6_intel.whl |
Total release size: 2.7 MB
Release files / convertbng-0.1.21.tar.gz
| Download URL | convertbng-0.1.21.tar.gz |
|---|---|
| Size | 1.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1f1b9651dc52edaf62240ccf9270a6b241fbc1725f12799cbe7816c43d8986d1
|
|
BLAKE2b-256 checksum How to use checksums |
01dae7f3e1ac1d0b32ce66e5c91fd95deb9384a6e4431a17d944105ff0b66c2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / convertbng-0.1.21-cp27-none-macosx_10_6_intel.whl
| Download URL | convertbng-0.1.21-cp27-none-macosx_10_6_intel.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 2.7 macOS 10.6+ Intel (x86-64, i386) |
|
SHA-256 checksum How to use checksums |
90651c52bb82d0ac39140a2b9e1e3cef49d5b9c9a47fcbe601d9ea2d6c9e63c1
|
|
BLAKE2b-256 checksum How to use checksums |
a84f01a66176eea84f06daa75688b0e441e6bae467f77cf2f5188de5654dff83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for convertbng 0.1.21
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.