esrishapejs
v0.0.2
Published
This library reads [esri shape format](http://doc.arcgis.com/zh-cn/arcgis-online/reference/shapefiles.htm).
Downloads
4
Readme
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.