-
Notifications
You must be signed in to change notification settings - Fork 44
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
Tuning and optimizations #121
Comments
We should check db queries with https://github.com/cyclosm/cyclosm-cartocss-style/blob/master/scripts/tuning.py for low zoom levels, queries are very long… :/ |
Current Mapnik XML file size
CyclOSM is not very good :/ I pushed a script to investigate it further in 2bb711c. |
This is very bad since CartoCSS will output in the Mapnik XML all possible values for the associated Therefore, due to this line, the Full output of the script is
EDIT: As a comparison, the result on the openstreetmap-carto style is https://gist.github.com/Phyks/b46fbf49d417a715ffe2c08b319c50b9. |
Generated Mapnik XML file went down from 5.8M to 4.7M. New numbers of rules are:
|
There were some issues with bicycle routes generating useless rules as well. Now fixed. The real issues here are:
This is a huge amount of rules, not sure if they match the amount of rules we actually have in the CartoCSS style or if there are useless rules generated in the Mapnik XML file… |
With the latest set of commits, I now have a Still some work to do on the roads style:
|
https://github.com/cquest/osmfr-cartocss/blob/master/tuning/tuning.py can be used to tweak the database calls.
https://github.com/cquest/osmfr-cartocss/blob/master/tuning/cleanxml.py could be used to investigate and fix why the resulting
mapnik.xml
(after runningKosmtik
) is so large.The text was updated successfully, but these errors were encountered: