Skip to content

jeromenerf/lambertgo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status GoDoc

#Description A simple Go package to convert coordinates in Lambert projections system to GPS WGS84 coordinates. It is based on the IGN alorithms and methods

Install

go get github.com/YaGeek/lambertgo

Usage

import lgo "github.com/yageek/lambertgo"
import "fmt"

//Declares origin point and translated point
var point *lgo.Point= &lgo.Point{994272.661,113467.422,0,lgo.Meter}

//Converts pointOrg in Lambert Zone 1 to WGS84 - Results in Radian
point.ToWGS84(lgo.LambertI)

//Converts to Degree
point.ToDegree()

fmt.Printf("Latitude:%.5f - Longitude:%.5f",point.Y,point.X)

#License Copyright (c) 2013 Yannick Heinrich - Released under the GPLv2 License.

About

Go package to coordinates in Lambert to WGS84

Resources

Stars

Watchers

Forks

Packages

No packages published