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 Registry 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=-087°18'0.00000" lat=+030°00'0.00000" 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=-000°07'37.21798" lat=+051°31'6.96719" end bearing=118.3°>
>>> london
<lon=-000°07'37.21800" lat=+051°31'6.96720" alt=0.0>
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
EPSGlide-0.1.0.tar.gz
(16.8 kB
view details)
File details
Details for the file EPSGlide-0.1.0.tar.gz
.
File metadata
- Download URL: EPSGlide-0.1.0.tar.gz
- Upload date:
- Size: 16.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39f4a9b0c348d613ff2c038f3274b78cc60cc54e0f243d818254189716c83c4d |
|
MD5 | 997b51ea2c8432b0adcb63a99acd258d |
|
BLAKE2b-256 | f0ee792e60bcbf472e8f8c72748c72c3a01ae5c9700b20e14241224b91fc3caa |