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

Clarify valid values for --part parameter #56

Closed
erikandre opened this issue Jan 27, 2016 · 2 comments
Closed

Clarify valid values for --part parameter #56

erikandre opened this issue Jan 27, 2016 · 2 comments

Comments

@erikandre
Copy link

I've been using mapbox-tile-copy to process some very large .shp files, using the option to process them in parts.

However, after looking at the documentation I'm still not quite sure about if the --part parameter is zero indexed (e.g. if --parts=10 then valid values for part is 0..9) or if it instead should start at 1 (e.g. if --parts==10 then valid values for part is 1..10).

Trial and error has not really helped me either since I've not reliably been able to process either part 0 or 10 (in case of 10 parts). Sometimes part=0 works (it doesn't contain a lot of tiles though) but most of the time it will just time out (and trying part=10 always seems to time out).

Error: Copy operation timed out at null.<anonymous> (/usr/lib/node_modules/mapbox-tile-copy/node_modules/tilelive/lib/tilelive.js:390:22) at wrapper (timers.js:261:14) at Timer.listOnTimeout [as ontimeout] (timers.js:112:15)

It would be great if the documentation could make this a bit more clear :). Thanks and a huge thank you for open sourcing this awesome project!

@GretaCB
Copy link

GretaCB commented Oct 4, 2016

👋 @erikandre, thanks so much for your ticket. I ran into a similar copy problem this week, and updated the docs a bit. PR is currently pending here. Parts are definitely zero-indexed.

@erikandre
Copy link
Author

Thank you @GretaCB for clearing that up! :)

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