calvinmetcalf / shapefile-js

Convert a Shapefile to GeoJSON. Not many caveats.
http://calvinmetcalf.github.io/shapefile-js/
MIT License
735 stars 230 forks source link

problem loading a shpfile with more than 5000 layers #102

Closed ehsan-sotoodeh closed 3 years ago

ehsan-sotoodeh commented 6 years ago

Hello, I have two shpfiles that are quite similar (one is simplified of the other). The first shpfile has 5000 layers and library visualize it on the map easily. second one has 10000 layers. But the library cannot load it even though the function that is called to load both files is the same. even I don't get this log.

    shpfile.once("data:loaded", function() {
        console.log("finished loaded shapefile");
    });

Link for 5000 layers file http://gwf-demo.usask.ca/data/shapefiles/sample-5000.zip

link for 10000 layers file http://gwf-demo.usask.ca/data/shapefiles/sample_10000.zip

ehsan-sotoodeh commented 6 years ago

Any suggestions?

calvinmetcalf commented 6 years ago

sorry, was on vacation, just got back, first question, are you running out of memory ?