New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

esrishapejs

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esrishapejs

This library reads [esri shape format](http://doc.arcgis.com/zh-cn/arcgis-online/reference/shapefiles.htm).

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

esrishapejs

This library reads esri shape format.

Example


//import the library
var ShpFile = require('esrishapejs');

//you must check your .shp .dbf for init function
ShpFile.init({
    shpfile:shpfile,
    dbffile:dbffile,
    type:'geojson', // geojson or arcgis 
    }).then(data=>{
        //Returns the true result
        console.log(e)
    },data=>{
        // any error
        console.log(e)
    })
);

esrishapejs can undecode the dbf file for utf8 utf16 and gbk2313,when the decode type is gbk2313 you need import the gbk2313.

Keywords

shape

FAQs

Package last updated on 10 Jun 2019

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