Skip to main content

PyGeoLeb

Tests Documentation

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.

Download files

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

Source Distribution

pygeoleb-0.2.1.tar.gz (51.8 kB view details)

Uploaded Source

Built Distribution

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

pygeoleb-0.2.1-py3-none-any.whl (43.1 kB view details)

Uploaded Python 3

File details

Details for the file pygeoleb-0.2.1.tar.gz.

File metadata

  • Download URL: pygeoleb-0.2.1.tar.gz
  • Upload date:
  • Size: 51.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for pygeoleb-0.2.1.tar.gz
Algorithm Hash digest
SHA256 09ca7c0135782387905b40627be4e1af01c309b9035f3175ecccd219b05f2974
MD5 445c4fc998fe0f9167bcd822b64bc03c
BLAKE2b-256 9a1492a2f58b60694a58dbe9634987feb493f6556ee10454671604802c9526e4

See more details on using hashes here.

File details

Details for the file pygeoleb-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pygeoleb-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 43.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for pygeoleb-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a5c629ad43539ae08edd966a1e970c4b92dfc27ac7d55cf85d72ee9bcee8382f
MD5 9b9579347c48e6c6c2f20f3f1b29a119
BLAKE2b-256 29bb6d020ffe8c20843fbb846b3fb2936d4bd7f153ca4ca2f5462f11c2d6fe5e

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