Skip to content
A pure Go package for coordinate transformations.
Go
Branch: master
Clone or download
Latest commit e3d95a0 Oct 27, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore first commit Jun 8, 2019
.golangci.yml v0.4.11 Oct 14, 2019
.travis.yml
LICENSE first commit Jun 8, 2019
README.md v0.5.0 Oct 22, 2019
area.go v0.5.0 Oct 22, 2019
datum.go v0.5.0 Oct 22, 2019
epsg.go v0.5.2 Oct 27, 2019
epsg_test.go v0.5.4 Oct 27, 2019
func.go v0.5.4 Oct 27, 2019
helmert.go v0.5.0 Oct 22, 2019
interface.go v0.5.0 Oct 22, 2019
reference.go v0.5.5 Oct 27, 2019
spheroid.go v0.5.0 Oct 22, 2019
system.go v0.5.0 Oct 22, 2019
utils.go v0.5.0 Oct 22, 2019

README.md

GoDoc Go Report Card GolangCI Codecov GitHub tag (latest SemVer)

WGS84

A pure Go package for coordinate transformations.

go get github.com/wroge/wgs84

Usage

east, north, h := wgs84.LonLat().To(wgs84.ETRS89UTM(32)).Round(2)(9, 52, 0)
// 500000 5.76103821e+06 0

lon, lat, h := wgs84.ETRS89UTM(32).To(wgs84.EPSG().Code(4326)).Round(3)(500150, 5761200, 0)
// 9.002 52.001 0

// EPSG-Codes covering the coordinate {longitude: 9, latitude: 52}:
codes := wgs84.EPSG().CodesCover(9, 52)
// [25832 4314 32632 4978 4258 31467 4326 3857 900913]

...Calculate EPSG-Code from Unknown Coordinates
...Calculate WebMercator Tile from WGS84 Longitude Latitude
...Transformation between OSGB36 NationalGrid and WGS84 Geographic Coordinates
...Adding a CoordinateReferenceSystem (MGI AustriaLambert) to the EPSG-Repository

Features

  • Helmert Transformation
  • Web Mercator
  • Lambert Conformal Conic
  • Transverse Mercator (UTM)
  • EPSG-Code Coverage
  • ...
  • Easily expandable through simple interfaces
You can’t perform that action at this time.