Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including ptolemy with all npm packages installed. Try it out:

var ptolemy = require("ptolemy")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

ptolemy v0.0.3

Retrieve geographic projection information from an EPSG SRID


Build Status Build Status


A simple way to retrieve geographic projection information, in a variety of formats, from an EPSG SRID. Uses the 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)


$ npm install ptolemy


var ptolemy = require('ptolemy');

ptolemy.get('4326', 'ogcwkt', function (err, 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"]]'



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

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free