https://github.com/yageek/lambert
:earth_africa: C library to convert Lambert coordinates to WGS84 with IGN Algorithms
https://github.com/yageek/lambert
c coordinates lambert wgs84
Last synced: about 1 year ago
JSON representation
:earth_africa: C library to convert Lambert coordinates to WGS84 with IGN Algorithms
- Host: GitHub
- URL: https://github.com/yageek/lambert
- Owner: yageek
- License: lgpl-2.1
- Created: 2013-07-06T13:06:47.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2017-06-09T06:20:22.000Z (almost 9 years ago)
- Last Synced: 2025-03-25T15:13:00.331Z (about 1 year ago)
- Topics: c, coordinates, lambert, wgs84
- Language: C
- Homepage:
- Size: 293 KB
- Stars: 4
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](http://www.conan.io/source/lambert/2.0.1/yageek/stable)
# lambert
A simple C library to convert Lambert coordinates to GPS WGS84 coordinates based on the [IGN algorithms and methods](http://geodesie.ign.fr/contenu/fichiers/documentation/algorithmes/notice/NTG_71.pdf)
# Install
## Windows/Raw import
Add `lambert.h` and `lambert.c` into your project
## Unix/static library
Inside the source folders :
mkdir build && cd build
cmake ..
make install
## Debian package
You can obtain `.deb` from [bintray](https://bintray.com/yageek/deb/liblambert)
## Conan
````
[requires]
lambert/2.0.1@yageek/stable
[generators]
cmake
````
See: https://www.conan.io/source/lambert/2.0.1/yageek/stable
# Usage
```c
//Declares origin point and translated point
YGPoint point = YGMeterPoint(994272.661,113467.422);
//Converts point in Lambert Zone 1 to WGS84
point = YGPointConvertWGS84(point,LAMBERT_I)
//Convert to Degree
point = YGPointToDegree(point);
printf("Lat:%.9f - Lon:%.9f",point.y,point.x);
```
# Changelog
#### 2.0.1
* Fix bug when transforming coordinates from cartesian to geographic in non Lambert93.
#### 2.0.0
* Change API.
#### 1.0.1
* Fix bug in Lambert93 case.
#### 1.0.0
* First release.