js-shapefile-to-geojson icon indicating copy to clipboard operation
js-shapefile-to-geojson copied to clipboard

Can not load shapefile

Open adhitmipa opened this issue 11 years ago • 1 comments

i am from indonesia. I have 2 shape file, but both can not be loaded by shapefile.js. one of them appeared error

  1. fbounds is undefined
  2. window.shapefile is undefined -> window.shapefile.addDBFDataToGeoJSON (e.data [1]) what kind of bugs are in shapefile.js?? sdfgsgtery

and lastly, one shape file is not executable by shapefile.js   varshape var = new Shapefile ({          shp: link + ". shp",          dbf: link + ". dbf"      }, Function (data) { ...... }

adhitmipa avatar Jun 15 '13 17:06 adhitmipa

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) {

})

wavded avatar Aug 26 '13 22:08 wavded