Skip to main content

Efficient great circle computation and projection library with access to EPSG dataset public API

Project description

Python epsglide package

This package aims to perform simple requests to EPSG GeoRepository API and provides associated geodesic computation and map projection.

EPSG dataset requests and projection

>>> import math, epsglide
>>> crs = epsglide.ProjectedCoordRefSystem(26730)
>>> crs
<ProjectedCoordRefSystem 26730: NAD27 / Alabama West>
>>> point = epsglide.Geodesic(math.degrees(crs.lambda0), math.degrees(crs.phi0))
>>> crs(point)
<US survey foot:3.281[X=152400.305 Y=0.000] alt=0.000>
>>> crs(crs(point))
<lon=-087d18m0.00000s lat=+030d00m0.00000s alt=0.0>

Great circle computation

>>> wgs84 = epsglide.dataset.Ellipsoid(7030)
>>> dublin = epsglide.Geodesic(-6.272877, 53.344606, 105.)
>>> london = epsglide.Geodesic(-0.127005, 51.518602, 0.)
>>> dist = wgs84.distance(dublin, london) 
>>> dist
<464.572km initial bearing=113.5° final bearing118.3°>
>>> wgs84.destination(dublin, dist) 
<lon=-000d07m37.21798s lat=+051d31m6.96719s end bearing=118.3°>
>>> london
<lon=-000d07m37.21800s lat=+051d31m6.96720s alt=0.0>

Project details


Download files

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

Source Distribution

EPSGlide-0.2.0.tar.gz (19.3 kB view details)

Uploaded Source

File details

Details for the file EPSGlide-0.2.0.tar.gz.

File metadata

  • Download URL: EPSGlide-0.2.0.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.7

File hashes

Hashes for EPSGlide-0.2.0.tar.gz
Algorithm Hash digest
SHA256 eb61830b44b6046e8d1e6adcd161849180b767feb2c9a3f845a6fb6b1d535319
MD5 6ff0d2c17c3179322ae7e14a41ebb50a
BLAKE2b-256 e45d8291570351bd9e65de0194aa17bbb4bf3ac9cae9ca4b853d6727d45c6d89

See more details on using hashes here.

Supported by

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