-
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
remove line barrier catch-all rendering #1986
remove line barrier catch-all rendering #1986
Conversation
From reading code - this PR adds rendering of barrier lines on z14 and z15. I am guessing that it will give poor results at z15 (maybe except remote areas) and nearly always will make map worse on z14. Also, what are before/after results? Especially on z14 and z15. |
https://github.com/gravitystorm/openstreetmap-carto/blob/master/landcover.mss#L628 should prevent that, or am I overlooking something? One more note: Removal of barrier=line is likely to upset mappers who like to map sports field markings, but I think this is tagging for the renderer and should not be encouraged. |
Field_boundary is used when the boundary is not easy to determine, usually fence or hedge. |
So only barrier = embankment will be now rendered on z14 and z15. But it is worth checking is it a good idea.
It is undocumented and weird - the only reason to use barrier as main key is tagging for renderer.
It would be far better to document it on wiki and link it here.
So it is basically equivalent of barrier=yes. |
I would consider adding also http://taginfo.openstreetmap.org/tags/barrier=handrail Maybe also other values with 100 and more usages (like it was done for shops). |
Looks good to me at first sight. |
Right now barrier, in particular barrier=ditch in combination with waterway tags looks strange and non-intuitive, like a waterway with a different color: http://www.openstreetmap.org/#map=19/48.00544/7.78167 Maybe you can change this PR to not render barrier=ditch when in combination with a waterway tag that is rendered (i.e. stream/drain/ditch). |
74a882b
to
a31a471
Compare
I cannot test this as the only occurrence in my data is covered by a road at lower zooms. But since the code was in I assumed that it was ok once. Maybe somebody else can confirm.
added, 100 times is a bit low, but if there is a consensus about that I'm ok with it
Interesting, never seen this before. Added an exception for waterways. |
a31a471
to
d12cbd8
Compare
Values less than 1000 should be on consensual selection, without numerical limit. Thus useful new values can be added, while wrong spelling and tagging for the renderer can be suppressed. Just created a deprecation page for barrier=curb (595) as an AE spelling of kerb (44915). |
2015-11-29 19:57 GMT+01:00 Christoph Hormann notifications@github.com:
+1. Any waterway will be in a depression (or in a man made tube / "open |
yes, it's generic (and though not too helpful without further information)
how does this relate to barrier=hedge?
+1
what's the difference between this and a man_made=embankment? If it's very,
+1 |
I dont know if everybody is able to read the german wikipage to |
d12cbd8
to
35b70ad
Compare
35b70ad
to
6567eeb
Compare
There was an error in the SQL related to waterways, which I have fixed. |
Thanks! |
@math1985 @pnorman @matkoniecz @gravitystorm I plan to inform the community (especially the German one) beforehand of this change to minimise a probable backlash. When a good tagging scheme for e.g. Objections, thoughts? |
My opinion is that explicit mapping of sports field markings is not a good idea and should not be encouraged by renderers. The problem is of course that the alternative, i.e. rule based rendering of markings based on a generic sport type tagging of fields (#1126) is complex to implement within the current framework here. |
Thanks, good idea!
I think the discussion whether or not to map field lines is out of the scope of the repository. We could discuss whether we want to render them, independently of the tagging scheme. I suspect the answer to that question would be 'no'. |
Great idea, thanks for doing it! |
Removes line-barrier catch-all rendering and fixes a bug where the line-barrier layer was displayed from z16, but a rendering rule for z14 was present.
Line barrier values > 1000 uses (with taginfo usage and comments):
fence 1 748 621 ok
wall 1 306 878 ok
hedge 646 979 ok
retaining_wall 93 566 ok
yes 47 152 no wiki page, too general
kerb 44 915 ok
ditch 20 143 ok
city_wall 19 589 ok
guard_rail 17 077 ok
hedge_bank 14 508 only german wiki page available
wire_fence 10 379 no wiki page, should be fence
line 8 166 no wiki page, not a barrier (access=no?), tagging for the renderer
chain 5 405 ok
embankment 4 599 no wiki page, but included since rendering rule already present
field_boundary 3 847 no wiki page
wood_fence 2 171 no wiki page, should be fence
avalanche_protection 1 865 no wiki page
handrail 969 ok