Open GinoVillalpando opened 2 years ago
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 :)
@GinoVillalpando I have the same issue could you fix it?
I have an![image](https://user-images.githubusercontent.com/55166195/137953543-06596e42-afe1-493b-b93c-ae562729476e.png)
<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: