-
Notifications
You must be signed in to change notification settings - Fork 825
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
Use z_order for roads instead of priority table #2732
Conversation
With z_order being used, these are no longer needed
The code is shorter with this change, which is great, but are there any other interesting implications? Should it be used also in this code? |
I'm not sure what you mean, but I'm not aware of any problems.
Yes. |
I wonder for example if z-order really gives the same result as priority? If I understand correctly, z-order means that we use layer=* tag, while prio does not use it. Am I right or it works in some other way? |
|
Just to note, if there are any changes in rendered output that someone spots, I'd be interested, because I'm not expecting any. |
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.
I tested this and reviewed the code, all seems fine. About time we finally go through with this!
@@ -444,7 +444,7 @@ Layer: | |||
table: |- | |||
(SELECT | |||
way, | |||
(CASE WHEN substr(feature, length(feature)-3, 4) = 'link' THEN substr(feature, 0, length(feature)-4) ELSE feature END) AS feature, |
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.
Can we make this change in a separate PR for clarity?
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.
I've done it in a separate commit, which should be clear enough
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.
Ok, fine.
Service tracks aren't handled by z_order Closes gravitystorm#2779
This is getting a start on #2046. There should be no rendering changes.
The
prio
join added extra filtering, but this isn't needed, and was in fact undesirable. The features to be rendered are specified in the MSS, and the data volume returned to Mapnik isn't noticeably impacted because the huge majority of lines matching the WHERE clause also match the features being rendered.