Socket
Book a DemoInstallSign in
Socket

ptolemy

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ptolemy

Retrieve geographic projection information from an EPSG SRID

0.0.3
latest
Source
npmnpm
Version published
Weekly downloads
3
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

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/

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

Keywords

srs

FAQs

Package last updated on 27 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.