-
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
Fix layering order for "construction=*" highway categories #3646
Conversation
…ayers properly This change is in openstreetmap-carto.lua, so it will take effect for new features and after database reload
This will cause roads to layer consistently between different zoom level, though this will only be visible for highway=construction Also adjust uncategorized construciton z-order and modify z-order for minor highways
Support for ordering by osm_id, regarding z_order (and therefore database related) changes see #3644 (comment). |
I could add a new SQL-based order just in the project.mml file for
roads-fill only.
But I thought that changing the z-order list in lua was better for
rendering speed.
Thoughts @imagico, @pnorman?
…On Thu, Jan 17, 2019 at 8:04 PM Christoph Hormann ***@***.***> wrote:
Support for ordering by osm_id, regarding z_order (and therefore database
related) changes see #3644 (comment)
<#3644 (comment)>
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3646 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AoxshCqmtUl4f6IcqauLaeRCuC2sWFauks5vEFjZgaJpZM4aERZK>
.
|
Your choice of approach is perfectly fine IMO but it will have to wait until the next database reload. I don't think adding complexity to the road layers' SQL to circumvent this would be a good idea. Just have a bit of patience here - the last database reload was in August - openstreetmap/chef#155 (comment) and for previous discussion about database reload patterns see #1286. While this is a problem that would be good to fix it is not a high impact problem that frequently causes serious problems for map users or mappers. |
Pending database reload, we cannot yet make changes to the openstreetmap-carto.lua file
Ok, I’ve removed the z-order changes. So the PR only adds ordering by
osm_id now
…On Thu, Jan 17, 2019 at 9:06 PM Christoph Hormann ***@***.***> wrote:
Your choice of approach is perfectly fine IMO but it will have to wait
until the next database reload. I don't think adding complexity to the road
layers' SQL to circumvent this would be a good idea.
Just have a bit of patience here - the last database reload was in August
- openstreetmap/chef#155 (comment)
<openstreetmap/chef#155 (comment)>
and for previous discussion about database reload patterns see #1286
<#1286>. While
this is a problem that would be good to fix it is not a high impact problem
that frequently causes serious problems for map users or mappers.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3646 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AoxshOZWX4M1JdIbHE2e2y2Cp8iG1tcJks5vEGdagaJpZM4aERZK>
.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SQL looks good in principle, but I haven't tested it.
I was going to comment on splitting up the construction changes, but I see @imagico has already done that.
New tests with the current commit:
|
Thanks!
I plan to submit a new PR with the lua changes, at the time of the next
database reload.
…On Fri, Jan 25, 2019 at 8:34 AM Matthijs Melissen ***@***.***> wrote:
Merged #3646
<#3646> into
master.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3646 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AoxshHuYAShfWDyTBePvoIudfbl9Jwb4ks5vGkMRgaJpZM4aERZK>
.
|
Related to #3579
Changes proposed in this pull request:
Explanation
Highway=construction is currently set to z = 10 in the z-order table, so that it will render below almost all highways and paths. However, the different types of construction=*, such as construction=motorway, construction=trunk_link, construction=service, all have the same z value, so they are laid in apparently random fashion. The layering order often changes from one zoom level to the next.
These two commits will eventually fix this problem.
The change to project.mml, adding osm_id as a final fall-back for ordering, will at least cause all highway=construction to rendering in a consistent way between zoom levels, effective immediately.
The improvement to rendering for different classifications of highway=construction is part of the lua transformations, and will take effect gradually for new and edited features, and then for old features when the database is next reloaded.
EDITED: the lua transformation changes have been removed for now, because a database reload is not yet planned
Test rendering with links to the example places:
EDITED: These were with the first commits
Before
A6 - New Trunk Interchange - Northern Ireland
https://www.openstreetmap.org/#map=16/54.7629/-6.4847
z15 Before
z16 Before
After z15
After z16
Murry's Island - Northern Ireland
https://www.openstreetmap.org/#map=15/54.7734/-6.5189
z15 Before
z15 After
Castledawson - new residential area
https://www.openstreetmap.org/#map=16/54.7692/-6.5512
z16 Before
z17 Before
After z16
After z17
EDITED: See new test renderings below