proj4js-definitions

0.1.0 • Public • Published

proj4js-definitions

Almost All the Projection Definitions for Proj4js

simple approach

acknowledgements

The data source crs-csv is actually created by scraping a locally running instance of epsg.io

install

npm install proj4js-definitions

usage in code

const defs = require("proj4js-definitions");

defs are an array

[
  [
    'EPSG:2000',
    '+proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +units=m +no_defs'
  ],
  [
    'EPSG:2001',
    '+proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +towgs84=-255,-15,71,0,0,0,0 +units=m +no_defs'
  ],
  [
    'EPSG:2002',
    '+proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +towgs84=725,685,536,0,0,0,0 +units=m +no_defs'
  ],
  [
    'EPSG:2003',
    '+proj=tmerc +lat_0=0 +lon_0=-62 +k=0.9995000000000001 +x_0=400000 +y_0=0 +ellps=clrk80 +towgs84=72,213.7,93,0,0,0,0 +units=m +no_defs'
  ],
  ... 4700+ more items
]

After loading the defs update your proj4 projector with

const proj4 = require("proj4");

proj4.defs(defs);

Package Sidebar

Install

npm i proj4js-definitions

Weekly Downloads

3,149

Version

0.1.0

License

CC0-1.0

Unpacked Size

822 kB

Total Files

5

Last publish

Collaborators

  • danieljdufour