PyGeoLeb
PyGeoLeb is a dependency-free Python library for geodetic coordinate transformations used in Lebanon. It converts geographic and projected coordinates between WGS 84, Clarke 1880 IGN, UTM zones 36N and 37N, Lebanon Double Stereographic, and Deir ez Zor Lambert.
Features
- Geographic ↔ Projected coordinate transformations
- WGS84 support
- Clarke 1880 IGN support
- Lebanon Double Stereographic projection
- Deir ez Zor Lambert projection
- UTM Zone 36N and 37N
- Datum transformations
- Geocentric coordinate conversions
- High-precision mathematical algorithms
Supported Coordinate Systems
- WGS84 Geographic
- WGS84 / UTM Zone 36N
- WGS84 / UTM Zone 37N
- Clarke 1880 IGN Geographic
- Lebanon Double Stereographic
- Deir ez Zor Lambert
Installation
python -m pip install pygeoleb
Quick start
Geographic coordinates use (longitude, latitude) in decimal degrees.
Projected coordinates use (easting, northing) in metres.
from pygeoleb.converter import GeoLebConverter
converter = GeoLebConverter()
# Beirut, WGS 84
easting, northing = converter.wgs84_to_utm36n(35.5012, 33.8938)
longitude, latitude = converter.utm36n_to_wgs84(easting, northing)
Supported coordinate systems
| CRS | Type | Datum / ellipsoid |
|---|---|---|
| WGS 84 | Geographic | WGS 84 |
| WGS 84 / UTM zone 36N | Projected | WGS 84 |
| WGS 84 / UTM zone 37N | Projected | WGS 84 |
| Clarke 1880 IGN | Geographic | Clarke 1880 IGN |
| Lebanon Double Stereographic | Projected | Clarke 1880 IGN |
| Deir ez Zor Lambert | Projected | Clarke 1880 IGN |
Documentation
Complete installation guidance, examples, coordinate-system details, API reference, theory, and FAQs are available at https://fneich.github.io/pygeoleb/.
License
PyGeoLeb is distributed under the MIT License.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygeoleb-0.1.0.tar.gz.
File metadata
- Download URL: pygeoleb-0.1.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a277f9d60224832ce3c811f3517b6c5b086d340e46a50005ae3238b98d07ced0
|
|
| MD5 |
8c8af508971404d220c3c7c31212dc1d
|
|
| BLAKE2b-256 |
4ec403e3e32dbb85654b9cec06a507959ac5148a842473e7ba6cf950fb187aac
|
File details
Details for the file pygeoleb-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pygeoleb-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d439925ce15f764211ed17556b9fc329bf7e39cc8d4818fc33a2af42b55168ce
|
|
| MD5 |
5b73fc9fdcfa93419789d48b5984e53f
|
|
| BLAKE2b-256 |
3d1f0948a8c489f910c06196ae0b25e5462a8155e0853e5f28fc0ff403537adf
|