ptolemy
v0.0.3
Published
Retrieve geographic projection information from an EPSG SRID
Downloads
7
Maintainers
Readme
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
Copyright
(c) 2015 Ben Lyaunzon Licensed under the MIT license.