You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an <input> where a user can upload a file and I noticed whenever you upload just the .shp file then you run into the following error:
However, using the entire zip folder works fine. Am I misunderstanding the first part in the documentation where you can use this on just the .shp file?
Here is a code snippet of the function that is using shpjs to translate to geojson:
the way it's set up doesn't work with just a .shp file because we assume that any binary buffer passed is a zip file, BUT if you call shp.parseShp(shpBuffer) that should just (synchronously) return the geometries as an array.
the way it's set up doesn't work with just a .shp file because we assume that any binary buffer passed is a zip file, BUT if you call shp.parseShp(shpBuffer) that should just (synchronously) return the geometries as an array.
Thank you for the response. I should be able to work this :)
I have an

<input>
where a user can upload a file and I noticed whenever you upload just the.shp
file then you run into the following error:However, using the entire zip folder works fine. Am I misunderstanding the first part in the documentation where you can use this on just the
.shp
file?Here is a code snippet of the function that is using shpjs to translate to geojson:
The text was updated successfully, but these errors were encountered: