PyGeoLeb
PyGeoLeb is a lightweight Python library for accurate coordinate transformations in Lebanon. It provides built-in support for the country's most commonly used geographic and projected coordinate reference systems, enabling seamless conversion 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.
Metadata
Release files for pygeoleb 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pygeoleb-0.2.1.tar.gz | 51.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pygeoleb-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 94.9 kB
Release files / pygeoleb-0.2.1.tar.gz
| Download URL | pygeoleb-0.2.1.tar.gz |
|---|---|
| Size | 51.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09ca7c0135782387905b40627be4e1af01c309b9035f3175ecccd219b05f2974
|
|
BLAKE2b-256 checksum How to use checksums |
9a1492a2f58b60694a58dbe9634987feb493f6556ee10454671604802c9526e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / pygeoleb-0.2.1-py3-none-any.whl
| Download URL | pygeoleb-0.2.1-py3-none-any.whl |
|---|---|
| Size | 43.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5c629ad43539ae08edd966a1e970c4b92dfc27ac7d55cf85d72ee9bcee8382f
|
|
BLAKE2b-256 checksum How to use checksums |
29bb6d020ffe8c20843fbb846b3fb2936d4bd7f153ca4ca2f5462f11c2d6fe5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|