-
Notifications
You must be signed in to change notification settings - Fork 819
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
Revert "Render unpaved roads different" #3386
Conversation
Could you explain the reasoning behind this and your plan to proceed with this change? |
Well, in the detailed testing that @rrzefox did with this change, it has a performance impact on higher zoom level. I have played around a little bit with a different SQL query reducing the amount of actually rendered globalboundingboxes and the SQL query gets more complicated. And I run into an SQL syntax problem that I do not understand (has apparently something to do with bbox) As @tomhughes for the moment did not made a statement in #3386 about how much impact that would have on openstreetmap.org servers, and as the next release is planed for 21 september 2018 and as I do not have much time currently to proceed with investigating the SQL query, I preferred to stay on the same side and avoid performance problems like the last time. And avoid to feel in hurry. I’ve detected also a minor bug in this pull request. (Unpaved railway=platform that are at the same time bridges do not render in the correct colour if layer=* is different from 0). Plans to proceed? My idea would be:
But I’m open for other suggestions… |
The easy fix for the railway=platform bug is rendering unpaved platforms (both railway=platform and highway=platform) like paved ones. |
My recommendation in #3357 (comment) was to see if you can reproduce the performance difference in a test environment and if yes to try pinpointing what exactly makes the difference. |
I’ve tried to reproduce this locally and was not able to. Measuring the time for tile rendering using the script from @giggls gives me the same performance with or without this PR. As @talaj said:
This was the starting point for looking at SQL query tuning… |
If you can't reproduce it in a test environment i would avoid drawing any broader conclusions or making decisions based on a single observation without information what part of the process is slower exactly. If you can't reproduce it in a test environment you can essentially also rule out any universal performance issues in mapnik with the code used (including ones due to unnecessary geometries being included in rendering) because what mapnik receives to render will be the same no matter if you are on a global database or just with a small test data set. |
Okay. At https://github.com/sommerluk/openstreetmap-carto/tree/unpaved24 is what I’m currently working on. The problem with For performance, as the |
Reverts #3357