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

Promise related issue while importing a zip file #117

Closed danielcai1987 closed 3 years ago

danielcai1987 commented 5 years ago

Hi,

I was trying to convert a shape file .zip to geojson. My code is here in script.js https://github.com/design-automation/mobius-data-converter/tree/dev

The shape file is in /files/stations.zip

I can access http://localhost/stations.zip to download the file.

But I got the following error when running the script. Please kindly help, thank you!

Error at IncomingMessage.<anonymous> (C:\Users\****\Desktop\test\mobius-data-converter\node_modules\shpjs\lib\binaryajax.js:33:27) at IncomingMessage.emit (events.js:187:15) at endReadableNT (_stream_readable.js:1094:12) at process._tickCallback (internal/process/next_tick.js:63:19)