Closed dulldrums closed 10 months ago
I just updated this so the default behavior is a shallow zip, which is compatible with QGIS and ArcGIS. If options.folder is specified and a string, then this will create a zip file that unzips to a folder with the specified name.
@dulldrums Do you think this will be merged into master and released in the near future? This would be very helpful to have.
@baxter1707 I doubt it, PRs haven't been merged in nearly four years. There are several forks that are being actively maintained
Should be resolved thanks to https://github.com/mapbox/shp-write/pull/96 and https://github.com/mapbox/shp-write/pull/100 , will publish soon, thanks!!
This addresses issue #70
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. We want to have an option to zip the files without putting them in a folder.
Usage
Set
folder:false
in the options object that is passed into the zip function.Example: