Metadata-Version: 2.4
Name: pygeoleb
Version: 0.1.0
Summary: Coordinate transformations for Lebanese geodesy
Author: PyGeoLeb contributors
License: MIT License
        
        Copyright (c) 2026 PyGeoLeb contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Documentation, https://fneich.github.io/pygeoleb/
Project-URL: Homepage, https://github.com/Fneich/pygeoleb
Project-URL: Issues, https://github.com/Fneich/pygeoleb/issues
Project-URL: Source, https://github.com/Fneich/pygeoleb
Keywords: coordinate-transformation,geodesy,gis,lebanon,projection
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: GIS
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-cov>=5.0; extra == "dev"
Provides-Extra: docs
Requires-Dist: mkdocs-material>=9.5; extra == "docs"
Requires-Dist: mkdocstrings[python]>=0.25; extra == "docs"
Requires-Dist: ruff>=0.6; extra == "docs"
Dynamic: license-file

# PyGeoLeb

[![Tests](https://github.com/Fneich/pygeoleb/actions/workflows/tests.yml/badge.svg)](https://github.com/Fneich/pygeoleb/actions/workflows/tests.yml)
[![Documentation](https://github.com/Fneich/pygeoleb/actions/workflows/docs.yml/badge.svg)](https://github.com/Fneich/pygeoleb/actions/workflows/docs.yml)

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

```bash
python -m pip install pygeoleb
```

## Quick start

Geographic coordinates use `(longitude, latitude)` in decimal degrees.
Projected coordinates use `(easting, northing)` in metres.

```python
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](LICENSE).
