mapbox / shp-write

create and write to shapefiles in pure javascript
BSD 3-Clause "New" or "Revised" License
290 stars 186 forks source link

Not able to import shp files with calvinmetcalf/shapefile-js #89

Closed ys4503 closed 2 years ago

ys4503 commented 2 years ago

I can export zipped shape files with no issues and can view them with mapshaper.org. However, with calvinmetcalf/shapefile-js, it’s not able to read the files (just keeps spinning) when I try to import the files and I suspect it might be the encoding. If so, how can I try different encoding? I’m using the maintenance branch

ys4503 commented 2 years ago

For anyone with the same issue, it happens when the shapes don't have feature properties. Adding any feature properties resolved it.