-
Notifications
You must be signed in to change notification settings - Fork 111
Creating labels is endless on big mbtiles #39
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
Comments
What you're experiencing is probably caused by running out of RAM. I just ran 'label-maker label' on the united_states_of_america.mbtiles file on an AWS m5.4xlarge (64GB of RAM). It peaked at about 61GB of usage but did finally finish running in a half hour or so. Looking at the code, it appears that stream-filter.py is taking the output of tippecanoe-decode and instead of streaming it, buffering the entire GeoJSON into memory before processing it. Quick fix is to change stream-filter.py line 8 to read: This will cause it to stream the lines instead of buffering them. I'm not sure if there are other implications of this given that you're relying on tippecanoe to output each feature on a single line... but it appears to make that assumption either way. I'll submit a PR on it in the mean time. :) |
@Ashot-KR can you try version 0.2.1 to see if this still occurs? I pushed the above fix from @McCulloughRT as well as a download fix (#35) for large files. |
thanks, i will try it in few day, when i have some free time |
it took about 30 minutes, but it works, thanks! |
Tried to create labels on
Russia:
and US:
when running
label-maker download
process seems endless.I started process for the whole night for russia, in the morning it was still active with no any results (geojson file has 0 bytes)
The text was updated successfully, but these errors were encountered: