Coder Social home page Coder Social logo

coordconv's Introduction

coordconv

Utility for converting coordinates between WGS84 Lon Lat, UTM and MGRS/UTMREF.

Usage

$ ./coordconv

Program:
  Name    : ./coordconv
  Release : v0.2.0 - 2019/05/10
  Purpose : coordinates conversion
  Info    : Utility for converting coordinates between WGS84 Lon Lat, UTM and MGRS/UTMREF.

Supported conversions:
  UTM2LatLon  : converts from UTM to LatLon
  UTM2MGRS    : converts from UTM to MGRS
  LatLon2UTM  : converts from LatLon to UTM
  LatLon2MGRS : converts from LatLon to MGRS
  MGRS2UTM    : converts from MGRS to UTM
  MGRS2LatLon : converts from MGRS to LatLon

Data objects:
  UTM    : ZoneNumber ZoneLetter Easting Northing
  LatLon : Longitude Latitude
  MGRS   : String

Examples:
  ./coordconv UTM2LatLon 32U 399000 5757000
  ./coordconv UTM2MGRS 32U 399000 5757000
  ./coordconv LatLon2UTM 51.95 7.53
  ./coordconv LatLon2MGRS 51.95 7.53
  ./coordconv MGRS2UTM 32ULC989564
  ./coordconv MGRS2LatLon 32ULC9897356497

Abbreviations:
  Lon    : Longitude
  Lat    : Latitude
  MGRS   : Military Grid Reference System (same as UTMREF)
  UTM    : Universal Transverse Mercator
  UTMREF : UTM Reference System (same as MGRS)
  WGS84  : World Geodetic System 1984 (same as EPSG:4326)

Output

$ ./coordconv UTM2LatLon 32U 399000 5757000
32U 399000 5757000 -> 51.954519 7.530231

$ ./coordconv UTM2MGRS 32U 399000 5757000
32U 399000 5757000 -> 32ULC9900057000

$ ./coordconv LatLon2UTM 51.95 7.53
51.950000 7.530000 -> 32U 398973 5756497

$ ./coordconv LatLon2MGRS 51.95 7.53
51.950000 7.530000 -> 32ULC9897356497

$ ./coordconv MGRS2UTM 32ULC989564
32ULC989564 -> 32U 398900 5756400

$ ./coordconv MGRS2LatLon 32ULC9897356497
32ULC9897356497 -> 51.949993 7.529986

Remarks

  • See releases for executable program.
  • See package coco for Go library.
  • UTM format = zone number, zone letter (not hemisphere), easting, northing

coordconv's People

Contributors

klaus-tockloth avatar

Stargazers

Daniel J. Dufour avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.