0.0.3 • Published 9 years ago

ptolemy v0.0.3

Weekly downloads
7
License
MIT
Repository
github
Last release
9 years ago

ptolemy

Build Status Build Status

ptolemy

A simple way to retrieve geographic projection information, in a variety of formats, from an EPSG SRID. Uses the epsg.io website.

The following formats for projections are supported:

  • proj4
  • wkt
  • prettywkt (human-readable)
  • esriwkt
  • gml
  • mapnik
  • proj4js (returns js code - always be careful when using eval)

Install

$ npm install ptolemy

Usage

var ptolemy = require('ptolemy');

ptolemy.get('4326', 'ogcwkt', function (err, resp) {
  console.log(resp);
});

// Result
'GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.01745329251994328,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]]'

Credits

http://epsg.io/

Copyright

(c) 2015 Ben Lyaunzon Licensed under the MIT license.

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago