mapbox / shp-write

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

Mismatched .dbf and .shp record count when exporting multiple polylines #113

Open abrman opened 7 months ago

abrman commented 7 months ago

When importing the generated dbf and shp from the README.md zip example into https://mapshaper.org/ it seems like the shapefile merges the two polylines into a singular polyline feature. I'm not educated on the internal workings of shapefiles (even after headscratchingly reading the 1998 published whitepaper), but that's my best understanding of what's happening.

image

I'm trying to resolve this as it prevents me from importing generated shapefiles into Autodesk Civil 3D resulting in the following error:

image

I do think I have a solution, will do a PR soon.