JSPM

cconv

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q31761F
  • License MIT

A Coordinate Conversion node module

Package Exports

  • cconv

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cconv) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#cconv - A Coordinate Conversion node module

In the chaotic world of GIS coordinate systems, a node module rises to bring a message of hope and understanding.

This module converts from geodesic latitude/longitude(degrees) to projected coordinates Easting/Northing (metres), and also the other way around.

##Usage

var cconv= require('cconv')

cB = cconv(sridA, sridB, cA, f);

var sridA = 4258; The srid of the coordinate system

var sridB = 3035; The srid of the projected system

###Forward

var f = true;

var cA = [50.000,-5.000]; [ latitude, longitude]

var cB = []; [ Easting, Northing ]

###Reverse

var f = true;

var cA = [3962799.45, 2999718.85 ]; [ Easting, Northing ]

var cB = []; [ latitude, longitude ]

##References http://www.epsg.org/guides/docs/G7-2.pdf

(pag72 mainly)