Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GDAL took long. #29

Open
scaddenp opened this issue May 4, 2017 · 4 comments
Open

GDAL took long. #29

scaddenp opened this issue May 4, 2017 · 4 comments

Comments

@scaddenp
Copy link

scaddenp commented May 4, 2017

I got it to create GeoJson, but getting a message ogr2ogr took longer than 15000 to complete.
events.js:160
throw er; // Unhandled 'error' event
^

Error: ogr2ogr took longer than 15000 to complete
at Timeout._onTimeout (C:\AGStoShapefile-master\node_modules\ogr2ogr\index.j
s:192:31)
at ontimeout (timers.js:386:14)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)

@tannerjt
Copy link
Owner

tannerjt commented May 4, 2017

Did you try running the bigdata branch? It breaks down the requests into smaller files which you can combine after in QGIS or similar. Right now, it stores the output in memory before writing to a file, which can also cause issues. This particular issue is happening with a timeout with ogr2ogr.

@scaddenp
Copy link
Author

scaddenp commented May 4, 2017

No didnt. However, I hacked ogr2ogr to change 15000 to 50000 and it worked.

@tannerjt
Copy link
Owner

tannerjt commented May 4, 2017

Thats great. Thanks for the fix, I think others will find it helpful.

@tannerjt
Copy link
Owner

For reference, this can be changed here: AGStoShapefile/node_modules/ogr2ogr/index.js:192:31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants