-
Notifications
You must be signed in to change notification settings - Fork 827
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 ST_PointOnSurface for junctions #3933
Conversation
Sadly, this now has merge conflicts. |
I've rebased the PR and fixed the merge conflicts. The rendering examples above are unchanged. (I wish PRs with merge conflicts would be marked on the list at https://github.com/gravitystorm/openstreetmap-carto/pulls - there isn't any way we can show this, is there?) |
Anyone available to review this? |
@pnorman - can you review this? |
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.
Looks good, but I haven't run it.
Thank you. Is that enough of a review to merge this PR? |
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 think the SQL code should have the form as demonstrated by
https://github.com/gravitystorm/openstreetmap-carto/blob/master/project.mml#L354-L371
to make it clear if the WHERE condition applies to the whole query or just to the second component of the UNION ALL.
Apart from that the change itself seems fine - though i would suggest to consider dropping the rendering of polygons with junction=yes - there are only four percent of these with a name tag (1300) compared to 56 percent (19000) for nodes. Incentivizing tagging named junctions on polygons instead of nodes is bad for all data users and against established mapping practice and counterproductive for consistent mapping.
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.
Sorry - that was meant to be a 'request changes' review.
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.
way && !bbox!
needs to be in both WHERE clauses.
When the bbox token appears in the query, Mapnik no longer adds it to the outer wrapping query, so with the current code it wouldn't have an index to use for the planet_osm_point part
From what I understand, named junctions are somewhat important in Japan and Korea and an established mapping practice. Their use is documented pretty well on the junction=yes page and we've been supporting them in iD for over 5 years (see openstreetmap/iD#2484). |
I am not proposing to stop rendering names on junctions, i am proposing to drop doing this for junction polygons which are not consistently used to map something specific and where there is clearly no agreement if they are supposed to carry a name tag or not. The wiki in this case quite accurately describes the current use:
So use of junction nodes to map named junctions is well defined and consistently used. The tagging of polygons with 94 percent of the junction polygons have an |
I agree. Would you mind opening an issue about this, so it's not forgotten? |
I've pushed a new commit with the recommended changes. I hope I got the parenthesis right. |
Are we talking about the same thing? I see this on the wiki right now: Isn't that encouraging people to do exactly the thing that you are dropping the rendering for? |
cc @sommerluk who seems to be the one who made the proposal, got it approved, updated the wiki, and opened the issue in iD. |
|
Related to #3201
Changes proposed in this pull request:
junctions
layer in project.mmlTest rendering:
Before
![junction-area-before](https://user-images.githubusercontent.com/42757252/66808295-e0935c80-ef65-11e9-92a2-678f1666daaf.png)
After
![z17-junction-area-after](https://user-images.githubusercontent.com/42757252/66808245-cce7f600-ef65-11e9-9186-25b3f3b6d4cd.png)
This PR will need to be updated after #3915 is merged