mapbox / shp-write

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

Export shapfile with big data #62

Open nguyensonghao94 opened 6 years ago

nguyensonghao94 commented 6 years ago

I have a problem when have about 20.000 record shapefile. When i export to download, browser seem die. Please help me!

vasudevan-p commented 6 years ago

I too have the same problem. Tried with 50,000 records and the page crashed, but no errors reported. Further troubleshooting the problem, I noticed that the physical size of the generating shapefile matters. When I tried to download 20,000 records WITHOUT properties, it downloaded successfully. But when I added couple of simple properties to those features and tried again it failed.

So, I guess the code fails once the download size exceeds a limit.

zhik commented 6 years ago

Yea, Seems like a size limitation of JSZip.