You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

prj2epsg

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

prj2epsg

Node.js module for converting .prj files / projcs strings to EPSG codes


Version published
Weekly downloads
129
decreased by-13.42%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

prj2epsg

Node.js module for converting .prj files and projcs / geogcs strings to EPSG codes

  • Install
npm i prj2epsg
  • From .prj file
const prj2epsg = require('prj2epsg');
const fs = require('fs');

fs.readFile('./myproj.prj', (err, data) => {
    if(!err) prj2epsg.fromPRJ(data);
});
  • From GEOGCS / PROJCS string
const prj2epsg = require('prj2epsg');
let prj = 'GEOGCS[\"GCS_WGS_1984\",DATUM[\"WGS_1984\",SPHEROID[\"WGS_84\",6378137,298.257223563]],PRIMEM[\"Greenwich\",0],UNIT[\"Degree\",0.017453292519943295]]';

prj2epsg.fromPRJ(prj) // 4326
  • Methods
MethodArgumentsDescription
getprojection (String, File), type ('prj', 'epsg')returns full data object
fromPRJprojection (String, File)returns epsg code without prefix
fromEPSGprojection (String, File)returns prj projcs / geogcs string

FAQs

Package last updated on 11 May 2020

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc