#18662 closed enhancement (fixed)
[Patch] Route of type aerialway should contain "stop"
Reported by: | Owned by: | Don-vip | |
---|---|---|---|
Priority: | normal | Milestone: | 21.10 |
Component: | Internal preset | Version: | |
Keywords: | template_report relation route aerialway role stop | Cc: | simon04, Don-vip, Klumbumbus |
Description
What steps will reproduce the problem?
- A legacy route relation (cable car)
- Mark stop and end stations as "stop"
- Error, stop not in template (like in e.g. railway)
What is the expected result?
aerialway should allow stops too
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2020-02-01 01:10:57 +0100 (Sat, 01 Feb 2020) Build-Date:2020-02-01 00:12:46 Revision:15806 Relative:URL: ^/trunk Identification: JOSM/1.5 (15806 de) Linux Ubuntu 18.04.4 LTS Memory Usage: 970 MB / 2196 MB (408 MB allocated, but free) Java version: 1.8.0_181-b13, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM Screen: :0.0 1280x1024 Maximum Screen Size: 1280x1024 fonts-noto: fonts-noto:all-20171026-2 VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true] Program arguments: [/run/user/1000/gvfs/mtp:host=%5Busb%3A003%2C012%5D/Interner gemeinsamer Speicher/Download/Rastlboden.gpx] Dataset consistency test: No problems found Plugins: + reverter (35313) + undelete (35313) + utilsplugin2 (35248) Map paint styles: - https://josm.openstreetmap.de/josmfile?page=Styles/sac_scale&zip=1 Last errors/warnings: - W: No configuration settings found. Using hardcoded default values for all pools.
Attachments (5)
Change History (35)
comment:1 by , 5 years ago
Component: | Core → Internal preset |
---|---|
Keywords: | relation route aerialway role stop added |
comment:2 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
by , 5 years ago
Attachment: | stop-not-in-role.osm added |
---|
Sample .osm to replicate the (IMO) spurious warning
comment:3 by , 5 years ago
Though this kind of route is not documented in the Wiki, there are some in the Wild, https://taginfo.openstreetmap.org/tags/route=aerialway So it might make sense to have a template for this.
comment:4 by , 5 years ago
Owner: | changed from | to
---|---|
Status: | needinfo → new |
comment:5 by , 5 years ago
Priority: | normal → minor |
---|---|
Type: | defect → enhancement |
Currently, OSM has 181 relations of route=aerialway
comment:6 by , 4 years ago
The bigger problem is the false positive in validator check:
Role verification problem - Role of relation member does not match template expression 'highway=bus_stop || railway=station || railway=halt || railway=tram_stop' in preset Public transport route (Legacy)
Tried it with aerialway=station
+ public_transport=stop_position
and aerialway=yes
+ public_transport=stop_position
.
comment:7 by , 4 years ago
How about splitting the legacy route relation preset into three, one for rail, one for bus/share_taxi and one for the rest?
comment:8 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
by , 4 years ago
Attachment: | josm_17661_18662_route_relation_presets.patch added |
---|
patch adding ptv1 and ptv2 route relations for ferry and aerialway
comment:10 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | assigned → new |
Summary: | Route of type aerialway should contain "stop" → [Patch] Route of type aerialway should contain "stop" |
Please, find attached patch file also solving #17661.
As ferry has some different tags I had to handle it in an own preset. For better validation on members I added both, a ptv1 and a ptv2 version relations.
follow-up: 16 comment:11 by , 4 years ago
Ping
Do these changes need further discussion?
As #18949 was fixed, there is more room for improvements, but that can be handled in a separate patch.
comment:12 by , 4 years ago
Cc: | added |
---|
I would go on and add automatically created name
values (#18949) but please tell me if my way in splitting the presets is acceptable or where you see/have problems with it. Thanks
comment:13 by , 4 years ago
Ping.
@team:
Would you please tell me, if splitting into more individual presets for relations is the way to go. What are your opinions about the role problematic and how to solve it?
Thanks
comment:15 by , 4 years ago
Milestone: | → 21.06 |
---|---|
Priority: | minor → normal |
comment:16 by , 4 years ago
comment:17 by , 4 years ago
Milestone: | 21.06 → 21.07 |
---|
comment:18 by , 4 years ago
Milestone: | 21.07 → 21.08 |
---|
comment:19 by , 3 years ago
Milestone: | 21.08 → 21.09 |
---|
comment:20 by , 3 years ago
The patch no longer applies nicely (sorry) can you please update it? I'll apply it tomorrow.
comment:21 by , 3 years ago
Owner: | changed from | to
---|
by , 3 years ago
Attachment: | josm_17661_18662_v2.patch added |
---|
updated version 2; adds missing type=route
to all relations; updates/adds wiki links; allow "Road" + "Access Restriction" for all types
comment:22 by , 3 years ago
Well I had some glitches in the patch anyway. Please find updated version 2 which additionally
- adds missing
type=route
to all presets - adds/updates wiki links
- allows all object types for "Road" + "Access Restriction" to be able to link to the presets
I was kind of in a hurry and hope I did not mess up or forget that much.
comment:23 by , 3 years ago
Owner: | changed from | to
---|
by , 3 years ago
Attachment: | josm_17661_18662_v2_update.patch added |
---|
small update not using "Road Restrictions" anymore
comment:25 by , 3 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I do not like the preset link to "Road Restrictions". Please, find a small update which excludes most max*=*
in a chunk and uses this chunk instead of the preset link for ferries.
comment:26 by , 3 years ago
PresetClassificationsTest fails:
AssertionFailedError: railway=tram should not match 'Bus' ==> expected: <false> but was: <true> at org.openstreetmap.josm.gui.tagging.presets.PresetClassificationsTest.testRelationsForTram(PresetClassificationsTest.java:78)
Can you please check if the test needs to be updated or if something is wrong in presets?
comment:27 by , 3 years ago
Owner: | changed from | to
---|---|
Status: | reopened → new |
by , 3 years ago
Attachment: | josm_17661_18662_v2_update2.patch added |
---|
update version 2: removes the second bracket to satisfy test
comment:28 by , 3 years ago
Owner: | changed from | to
---|
This test is strange. Two options to satisfy it, again:
- splitting rail and bus for legacy ptv1 relations, as-well
- removing
Bus
from the general legacy ptv1 relations preset name by simply dropping the second brackets or changing it context to something else
I went with the last and removed the second bracket: josm_17661_18662_v2_update2.patch
Can you please share an .osm file showing the problem?