Modify

Opened 2 years ago

Last modified 10 months ago

#16093 new enhancement

handling of (lifecycle) prefixes

Reported by: Klumbumbus Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: lifecycle prefix Cc: daganzdaanda, demon_box

Description (last modified by Klumbumbus)

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:

Attachments (0)

Change History (11)

comment:1 Changed 2 years ago by Klumbumbus

Summary: handling of (lifecycle) prefixes in styles and validator ruleshandling of (lifecycle) prefixes

comment:2 Changed 2 years ago by Schröcker

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.)

comment:3 Changed 2 years ago by Klumbumbus

Cc: daganzdaanda 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)

comment:4 Changed 2 years ago by Klumbumbus

Ticket #15049 has been marked as a duplicate of this ticket.

comment:5 Changed 2 years ago by Klumbumbus

Ticket #15741 has been marked as a duplicate of this ticket.

comment:6 Changed 2 years ago by Klumbumbus

Cc: demon_box added

comment:7 Changed 2 years ago by Klumbumbus

Description: modified (diff)

comment:8 in reply to:  3 Changed 21 months ago by anonymous

+1 (as I can't vote on this)

Replying to Klumbumbus:

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

If something has a lifecycle prefix, maybe a separate preset would be useful which show up in the Tags/Membership window, where you can change/remove prefixes. I'm just thinking and not sure it's the best solution.

comment:9 Changed 10 months ago by anonymous

It would be great to add the support for life cycle prefixes.
I would think you could for example have a drop down menu in the presets that is named 'current state' or 'lifecycle' and that contains the different prefixes.

If I have time I will take a look on how the presets work and try to make an example.

comment:10 Changed 10 months ago by anonymous

I just took a peak at the presets.xml
Right now I can see a way to change a tag and not a value with a drop down list.
Anyone can give me an advice or say if it's even possible right now?

comment:11 Changed 10 months ago by Klumbumbus

No you can only change values in presets in JOSM, not the keys, see wiki:TaggingPresets.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to Klumbumbus
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.