Modify

Opened 5 years ago

Closed 3 years ago

Last modified 3 years ago

#18662 closed enhancement (fixed)

[Patch] Route of type aerialway should contain "stop"

Reported by: pch14@… 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?

  1. A legacy route relation (cable car)
  2. Mark stop and end stations as "stop"
  3. 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)

stop-not-in-role.osm (8.3 KB ) - added by anonymous 5 years ago.
Sample .osm to replicate the (IMO) spurious warning
josm_17661_18662_route_relation_presets.patch (15.5 KB ) - added by skyper 4 years ago.
patch adding ptv1 and ptv2 route relations for ferry and aerialway
josm_17661_18662_v2.patch (17.4 KB ) - added by skyper 3 years ago.
updated version 2; adds missing type=route to all relations; updates/adds wiki links; allow "Road" + "Access Restriction" for all types
josm_17661_18662_v2_update.patch (4.9 KB ) - added by skyper 3 years ago.
small update not using "Road Restrictions" anymore
josm_17661_18662_v2_update2.patch (6.2 KB ) - added by skyper 3 years ago.
update version 2: removes the second bracket to satisfy test

Download all attachments as: .zip

Change History (35)

comment:1 by Don-vip, 5 years ago

Component: CoreInternal preset
Keywords: relation route aerialway role stop added

comment:2 by Don-vip, 5 years ago

Owner: changed from team to pch14@…
Status: newneedinfo

Can you please share an .osm file showing the problem?

by anonymous, 5 years ago

Attachment: stop-not-in-role.osm added

Sample .osm to replicate the (IMO) spurious warning

comment:3 by anonymous, 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 skyper, 5 years ago

Owner: changed from pch14@… to team
Status: needinfonew

comment:5 by simon04, 5 years ago

Priority: normalminor
Type: defectenhancement

Currently, OSM has 181 relations of route=aerialway

comment:6 by skyper, 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 skyper, 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 skyper, 4 years ago

Owner: changed from team to skyper
Status: newassigned

comment:9 by skyper, 4 years ago

See #17661 for problems with ferry route relations.

by skyper, 4 years ago

patch adding ptv1 and ptv2 route relations for ferry and aerialway

comment:10 by skyper, 4 years ago

Owner: changed from skyper to team
Status: assignednew
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.

comment:11 by skyper, 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 skyper, 4 years ago

Cc: simon04 Don-vip Klumbumbus 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 skyper, 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:14 by skyper, 4 years ago

Ping

comment:15 by skyper, 4 years ago

Milestone: 21.06
Priority: minornormal

in reply to:  11 comment:16 by skyper, 4 years ago

Replying to skyper:

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.

As #20851 and #20861 should be fixed before introducing value_template in defaultpresets, the patch is ready for commit.

comment:17 by Don-vip, 4 years ago

Milestone: 21.0621.07

comment:18 by Don-vip, 4 years ago

Milestone: 21.0721.08

comment:19 by Don-vip, 3 years ago

Milestone: 21.0821.09

comment:20 by Don-vip, 3 years ago

The patch no longer applies nicely (sorry) can you please update it? I'll apply it tomorrow.

comment:21 by skyper, 3 years ago

Owner: changed from team to skyper

by skyper, 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 skyper, 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.

Last edited 3 years ago by skyper (previous) (diff)

comment:23 by skyper, 3 years ago

Owner: changed from skyper to Don-vip

comment:24 by Don-vip, 3 years ago

Resolution: fixed
Status: newclosed

In 18204/josm:

fix #17661 - fix #18662 - add ptv1 and ptv2 route relations for ferry and aerialway (patch by skyper)

by skyper, 3 years ago

small update not using "Road Restrictions" anymore

comment:25 by skyper, 3 years ago

Resolution: fixed
Status: closedreopened

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 Don-vip, 3 years ago

PresetClassificationsTest fails:

https://josm.openstreetmap.de/jenkins/job/JOSM/jdk=JDK8/7550/testReport/org.openstreetmap.josm.gui.tagging.presets/PresetClassificationsTest/testRelationsForTram__/

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 Don-vip, 3 years ago

Owner: changed from Don-vip to skyper
Status: reopenednew

by skyper, 3 years ago

update version 2: removes the second bracket to satisfy test

comment:28 by skyper, 3 years ago

Owner: changed from skyper to Don-vip

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

comment:29 by Don-vip, 3 years ago

Resolution: fixed
Status: newclosed

In 18210/josm:

fix #18662 - small update not using "Road Restrictions" anymore (patch by skyper)

comment:30 by Don-vip, 3 years ago

Milestone: 21.0921.10

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Don-vip.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.