0.0.2 • Published 5 years ago
esrishapejs v0.0.2
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.