Closed christophemacabiau closed 11 months ago
Your for
loop only generates 3 points but you are writing feature data of length 5
sorry! I have updated the code
@cricri Have you solved this problem?
nope :-(
@tmcw
Hi, is there any update on this problem? I use shpwrite.zip method and the shapefile produced joins all the polygon, and seems to only add one last feature.properties
I still face it and have been scratching my head over it. Any direction to fix this?
maybe you can use https://github.com/naturalatlas/node-gdal, which works fine for my use case
Thanks for the link, will definitely check it out. Hopefully it doesn't need any native dependencies as I'm developing a multi-platform app with electron.
I no longer maintain this module - contact Mapbox for assistance or support.
Hi @cricri do you have sample usage for the node-gdal link? This multipolygon bug is a real bummer. I'm stuck with an empty zip file if I try to save a multipolygon shape.
Hi @gxcodes, I added an example to create a shape using node-gdal https://github.com/naturalatlas/node-gdal/pull/205/commits/870b44b45075f41f7eae325b077392f5bada1aa5
@cricri thanks a lot! Really appreciate it.
Any update or fix for this bug?. The multipolygons are joined in the shape file.
I have a problem also multipolygon!!!!
I download polygon but coudn't for multipolygon
Is there any UPDATE????
Pllsss help !!!
Use Turf.js and flat your GeoJSON.
shpwrite.download(turf.flatten(geojson))
I know this is quite an old issue, but we should finally have this resolved as part of v0.4.0 (to be released soon, hopefully) https://github.com/mapbox/shp-write/releases/tag/v0.4.0
I think there is a bug with multipolygon shapes, I started from example/test_multiple_poly.js Open the generated shape in qgis you will see that there is a problem... Is there something wrong in my code ?