Skip to content
/ lambert Public

🌍 C library to convert Lambert coordinates to WGS84 with IGN Algorithms

License

Notifications You must be signed in to change notification settings

yageek/lambert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

badge

lambert

A simple C library to convert Lambert coordinates to GPS WGS84 coordinates based on the IGN algorithms and methods

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

Conan

[requires]
lambert/2.0.1@yageek/stable

[generators]
cmake

See: https://www.conan.io/source/lambert/2.0.1/yageek/stable

Usage

//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.

About

🌍 C library to convert Lambert coordinates to WGS84 with IGN Algorithms

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published