mapbox / shp-write

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

Add option to zip files without folder #70

Closed dulldrums closed 10 months ago

dulldrums commented 5 years ago

Problem

When zipping and downloading a shp file, jsZip creates a folder to put the files in. When the downloaded zip file is loaded into QGIS, it throws an error because it has a folder inside it.

Workaround

Unzip the downloaded zip file, and drag the resulting folder into QGIS.

Notes

Not really a critical issue, more of a convenience thing.

dulldrums commented 5 years ago

I have a fix for this issue, ill submit a PR tomorrow

baxter1707 commented 3 years ago

@dulldrums Do you know if this is going to be merged into master? This would be very useful.

sheindel commented 10 months ago

This has been fixed in the latest tag (v0.4.0). Will be released on npm soon.

sheindel commented 10 months ago

Good news: v0.4.2 is now available.

Less good news: Mapbox changed their deployment organization so this package is now hosted under a different package

@mapbox/shp-write https://unpkg.com/@mapbox/shp-write@latest/shpwrite.js