I have run a few tests to verify that I can write shapefiles with this module and everything works great until I generate a shapefile with more than 500 features.
I am not sure if 500 is the exact number, but I get over a certain number of features and my zip file gets corrupt.
Have you done any kind of testing on size?
Also wondering if there is an easy way to write the shp buffer to disk instead of using JSZip? At least that way I can verify if its the shp buffer that is messed up or JSZip that is messing things up.
Example of trying to unzip zip file:
$ unzip test.zip
Archive: test.zip
inflating: layers/Features_POINT.shp
inflating: layers/Features_POINT.shx
error: invalid compressed data to inflate
inflating: layers/Features_POINT.dbf
inflating: layers/Features_POINT.prj
$
I have run a few tests to verify that I can write shapefiles with this module and everything works great until I generate a shapefile with more than 500 features.
I am not sure if 500 is the exact number, but I get over a certain number of features and my zip file gets corrupt.
Have you done any kind of testing on size?
Also wondering if there is an easy way to write the shp buffer to disk instead of using JSZip? At least that way I can verify if its the shp buffer that is messed up or JSZip that is messing things up.