js-shapefile-to-geojson
js-shapefile-to-geojson copied to clipboard
Can not load shapefile
i am from indonesia. I have 2 shape file, but both can not be loaded by shapefile.js. one of them appeared error
- fbounds is undefined
- window.shapefile is undefined -> window.shapefile.addDBFDataToGeoJSON (e.data [1])
what kind of bugs are in shapefile.js??
and lastly, one shape file is not executable by shapefile.js varshape var = new Shapefile ({ shp: link + ". shp", dbf: link + ". dbf" }, Function (data) { ...... }
to load a shapefile, checkout the updated readme, it may answer your question, basically you should do:
new Shapefile ({
shp: link + ". shp",
dbf: link + ". dbf"
}, function (data) {
})