Skip to main content

Fast lon, lat to BNG conversion

Project description

Fast lon, lat to BNG conversion

Uses a Rust 1.x binary to perform fast longitude, latitude to BNG conversion. This module exposes two methods: util.convertbng() – pass a lon, lat. Returns a tuple of Eastings, Northings util.convertbng_list() – pass lists (or Numpy arrays) of lons, lats. Both methods return Easting, Northing tuples (in a list in the case of the latter).

Installation

Installation as a binary wheel using pip, for OS X: pip install convertbng Binary wheels aren’t yet available for Linux or Windows, but installation directly from Github works: pip install git+git://github.com/urschrei/convertbng.git

Usage

from convertbng.util import convertbng, convertbng_list

res = convertbng(lon, lat)

lons = [lon1, lon2, lon3]
lats = [lat1, lat2, lat3]
# assumes numpy imported as np
lons_np = np.array(lons)
lats_np = np.array(lats)

res_list = convertbng_list(lons, lats)
res_list_np = convertbng_list(lons_np, lats_np)

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

convertbng-0.1.17.tar.gz (1.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

convertbng-0.1.17-cp27-none-macosx_10_6_intel.whl (1.8 MB view details)

Uploaded CPython 2.7macOS 10.6+ Intel (x86-64, i386)

File details

Details for the file convertbng-0.1.17.tar.gz.

File metadata

  • Download URL: convertbng-0.1.17.tar.gz
  • Upload date:
  • Size: 1.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for convertbng-0.1.17.tar.gz
Algorithm Hash digest
SHA256 24d4c6f66c4a2c894c832af92fe77efc400a325e27871750ce1f629b31a63061
MD5 88fb87a5c59bbc7e2071182f4df0625e
BLAKE2b-256 7b130afceb8821db167f9f812bdd39aa8680678b3ac405a962980cb2af0931fe

See more details on using hashes here.

File details

Details for the file convertbng-0.1.17-cp27-none-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for convertbng-0.1.17-cp27-none-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 ccc391021d5da89e10e734277433ca38abb75e12caadb932aea7ed53e25d732a
MD5 0ef853fc7260e9e66a2ae51761fdbbbc
BLAKE2b-256 78651954fac49139fb8cc7a02ebaa3e57913b67fdae28689c4e2f9a5bb602ab7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page