Opened 8 years ago
Last modified 4 years ago
#16093 new enhancement
handling of (lifecycle) prefixes — at Version 3
| Reported by: | Klumbumbus | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | lifecycle prefix | Cc: | daganzdaanda, demon_box |
Description (last modified by )
lifecycle prefixes become more and more popular in osm tagging and already have high usage numbers. This leads to the situation that e.g. a lot of validator rules can produce false positives. E.g. a way tagged with disused:railway=* + electrified=* results in a warning "electrified without railway".
Explizitly adding all possible prefixes to all possible selectors seems impossible and inefficient. (Basically every tag could have a lifecycle prefix.)
Any ideas how we could handle (lifecycle) prefixes in styles/validator rules/presets?
Maybe also a more universal prefix solution is possible which could be used for other tagging schemas, like contact: or seamark:?
(some cross references: #12866, https://github.com/osm-fr/osmose-backend/issues/283, osmwiki:Lifecycle_prefix)
Change History (3)
comment:1 by , 8 years ago
| Summary: | handling of (lifecycle) prefixes in styles and validator rules → handling of (lifecycle) prefixes |
|---|
comment:2 by , 8 years ago
comment:3 by , 7 years ago
| Cc: | added |
|---|---|
| Description: | modified (diff) |
| Keywords: | lifecycle prefix added |
from user daganzdaanda at #15049:
The lifecycle prefix namespace is described here: https://wiki.openstreetmap.org/wiki/Lifecycle_prefix
It would be great if JOSM could help in adding, changing and removing these prefixes.
But I'm not sure how the UI should be. There are several possible situations when one might want a little help to find the right prefix:
- add a lifecycle-prefix to existing tags
- change an existing lifecycle-prefix on an existing tag
- remove an lifecycle-prefix
- add a new tag with a lifecycle-prefix
Maybe there could be an option in the right-click menu when you select a line in the tags ("Merkmale") window, or a button on that window? Either way, a dialog window with a selection of prefixes could pop up.
But maybe there is a more intuitive way for this?
The values I would include would be
proposed: ~26,000 in taginfo (quick sum by me)
construction: ~11,000 in taginfo
disused: ~53,000 in taginfo
abandoned: ~176,000 in taginfo
demolished: ~6200 in taginfo
removed: ~4300 in taginfo
(I'm not sure about the definition of historic: and was: which are also used a lot)



It could get worse.
For example: disused:railway=* + construction:electrified=* .
The easiest solution is to check only the core function (without the life-cycle prefix) and a formal check of the prefix. (Valid values etc.)