Opened 5 years ago

Last modified 2 years ago

#20833 new defect

[WIP Patch] Restrictions `no_exit` and `no_entry` missing — at Version 6

Reported by: skyper Owned by: skyper
Priority: normal Milestone:
Component: Internal preset Version: latest
Keywords: template_report turn restriction no_entry no_exit Cc: Klumbumbus

Description (last modified by skyper)

What steps will reproduce the problem?

  1. Select a way and one of its end nodes
  2. Search for restriction relations in presets and only find one preset
  3. Open the preset
  4. Choose the restriction value

What is the expected result?

Finding no_exit and no_entry in the list of values.

What happens instead?

Both values are missing.

Please provide any additional information below. Attach a screenshot if possible.

According to Relation:restriction both values are valid but special as these restrictions need only one of the two roles, from or to.

Looking at #17709 and #20832 and missing a multiselect for except=*. this preset needs some rework but adding the two missing values is the most important thing in my eyes.

Will try to come up with a patch the next days.

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-05-02 00:37:37 +0200 (Sun, 02 May 2021)
Revision:17851
Build-Date:2021-05-02 01:30:59
URL:https://josm.openstreetmap.de/svn/trunk

Change History (15)

comment:1 by skyper, 5 years ago

Well, with current options there is no possibility to define roles for certain restriction=*. Only solution is to create own presets for each of these two special cases, and use presetlinks.

comment:2 by skyper, 5 years ago

I did not find an icon for no_entry. Therefore I took the file from the OSM wiki and modified it (similar but different icon; adapted from no_u_turn.svg (adjusted size)), but looking at the license within the file and at the website I found a conflict (CC-BY-SA 4.0 vs. PD).

What counts?
Can we use it?

by skyper, 5 years ago

Attachment: josm_20833_menu.jpg added

new submenu

by skyper, 5 years ago

common preset (former only one)

by skyper, 5 years ago

common values

by skyper, 5 years ago

common conditional values

by skyper, 5 years ago

Attachment: josm_20833_no_entry.jpg added

no entry preset

by skyper, 5 years ago

no entry value

by skyper, 5 years ago

no entry conditional values

by skyper, 5 years ago

patch for preset

comment:3 by skyper, 5 years ago

Summary: Restrictions `no_exit` and `no_entry` missing[WIP Patch] Restrictions `no_exit` and `no_entry` missing

Please, take a look at my preset patch. It got huge, as indention was off and I added some presetlinks for similar relations.
The new icon (similar but different icon; adapted from no_u_turn.svg (adjusted size)) needs to be placed at trunk/resources/images/presets/vehicle/restriction/turn_restrictions/

It adds a new subgroup including the former preset, now "Common", and two own presets for no_enty and no_exit

new submenu

The preset itself got icons for the combo and I added two tags, restriction:conditional as combo and except as multiselect with icons. For sure, I added presetslinks each time linking to the two other presets.
Besides creating the missing traffic mode icons, see below, the only thing left to do is updating match="" by a match_expression="" once #20843 is fixed.

common preset (former only one) common values

common conditional values


no entry preset no entry value

no entry conditional values


  • Next step is to generate better and more traffic mode icons. Did not use inkscape for a while but I think I got the trick. Sadly I fail converting .svg with ImageMagic so far. Does anyone have a hint?
  • Last but not least I guess I need to learn style file coding to complete this task, despite adding some validator rules which can be handled in a separate ticket.
Last edited 5 years ago by skyper (previous) (diff)

comment:4 by skyper, 5 years ago

I have created a new icon using source:trunk/resources/images/presets/vehicle/restriction/turn_restrictions/no_u_turn.svg, similar but different icon; adapted from no_u_turn.svg (adjusted size)

by skyper, 5 years ago

Attachment: no_entry.svg added

similar but different icon; adapted from no_u_turn.svg (adjusted size)

comment:5 by skyper, 4 years ago

See also #18014.

comment:6 by skyper, 4 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.