-
Notifications
You must be signed in to change notification settings - Fork 171
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
Rethink handling of fenced=yes #514
Comments
I agree, that most of the time one should map the fence separate from the area (in fact in my experience very few areas are actually fenced all the way around). However, I don't see an issue with having an "area-feature" + barrier=fence, if mapping the fence separately is for some reason not feasible (at this point in time). However(2), I do see an issue with having two tags that describe the same thing. So I agree with the deprecation and upgrade-nudge. I agree, that having a "magic feature" that migrates the old tagging to a "two separate but connected geometries"-solution, would be an even better "deprecation" / upgrade path. But that is a complex feature to build… |
The possibility for a single feature to be an area and a linear feature at the same time is a gotcha that many data consumers have run into and needed to work around, because it isn’t interoperable with other GIS formats and schemas. The workaround is usually to synthesize a coincident feature (representing just the
Validator rules and fixes are implemented downstream in the iD codebase. If the “crossing ways” rule’s “Connect these ways” fix is any guide, a similar “Redraw the fence as a line around this area” fix should be relatively straightforward. The “outdated tags” rule is powered by the data in this repository, but any fix more complex than a simple tag replacement should be tracked in the openstreetmap/iD repository. |
Other comparisns see here |
FWIW, I agree that the current deprecation rule doesn't really do the right thing for polygonal features. A fix would need to:
|
It is not changing that mass replace with Yes, wiki has/had (I edited it)
at https://wiki.openstreetmap.org/wiki/Key:fenced but many OSM Wiki pages claim silly things and should not be followed blindly. |
Do you need a decision about that outside of this repository before you change the handling in iD or do you want to do what you already have proposed (replace |
For now, I go with how it is currently documented: replacing |
The problem is that In such cases robotic adding |
The status of fenced=yes was changed to Maybe the deprecation rule in iD can be removed now. |
When we remove the deprecation rule, do we want to also add a |
OpenTopoMap seems to render it, see: |
I just realized that this was already done long ago (910ef16). I had overlooked it because this issue remained open and the discussion continued. Sorry for the unnecessary noise.
Interesting idea, but I don't know. |
Current behaviour
iD seems to produce warnigs for all objects with

fenced=yes
that look likebecause of
id-tagging-schema/data/deprecated.json
Lines 646 to 647 in b947fd6
If the user executes the option to "upgrade the tags". iD replaces
fenced=yes
withbarrier=fence
on the same object.Why this is not a good idea
fenced=yes
is a tag mainly for area features, most of the objects tagged with it do also have an area tag, mostlylanduse=*
orleisure=*
. In contrast,barrier=fence
is a tag for a linear feature (a fence). For these objects, replacingfenced=yes
withbarrier=fence
produces objects that are tagged with an area and a linear feature tag mixed together. This is generally discouraged, explained in these discussions:Possible solutions
barrier=fence
(and its attributes, if present). There is already a similar option for nodes that are part of a way but shouldn't:Also objects that already have got these mixed area and linear tags should be handled.
fenced=yes
and ignore its deprecation (until some better solution than the current one is available).fenced=yes
should be deprecated at all.The text was updated successfully, but these errors were encountered: