Modify

Opened 4 years ago

Closed 3 years ago

Last modified 3 years ago

#20210 closed defect (fixed)

[Patch] False positive from RelationChecker for Fietsnetwerk/Radknotenpunktsystem ?

Reported by: GerdP Owned by: team
Priority: normal Milestone: 21.07
Component: Internal preset Version:
Keywords: template_report network relation node_network Cc:

Description (last modified by skyper)

What steps will reproduce the problem?

  1. Validate a relation like r1203658 (Fietsnetwerk Twente) which has hundrets of node members with empty role and tags
    name=Fietsnetwerk Twente
    network:type=node_network
    network=rcn
    type=network
    

What is the expected result?

In Germany we have them as well, e.g. r10572031 name=Radknotenpunktsystem Landkreis Oldenburg. I guess those relations must contain nodes, so I am not sure what's wrong exactly.

What happens instead?

Hundreds of warnings Type 'node' of relation member with role '' does not match accepted types 'relation' in preset Route Network (574)

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

Build-Date:2020-12-02 10:37:13
Revision:17384
Is-Local-Build:true

Identification: JOSM/1.5 (17384 SVN en) Windows 10 64-Bit
OS Build number: Windows 10 Home 2004 (19041)
Memory Usage: 1346 MB / 3641 MB (390 MB allocated, but free)
Java version: 1.8.0_272-b10, AdoptOpenJDK, OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→32×32, 32×32→32×32
VM arguments: [-agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:55380, -ea, -javaagent:D:\eclipse-java-2020-09\eclipse\configuration\org.eclipse.osgi\215\0\.cp\lib\javaagent-shaded.jar, -Dfile.encoding=UTF-8]
Program arguments: [--debug]
Dataset consistency test: No problems found

Plugins:
+ ColumbusCSV (35640)
+ buildings_tools (35640)
+ o5m (35640)
+ pbf (35650)
+ poly (35640)
+ reltoolbox (35640)
+ reverter (35640)
+ undelete (35640)
+ utilsplugin2 (35640)

Validator rules:
+ c:\josm\core\resources\data\validator\geometry.mapcss

Last errors/warnings:
- 00284.015 W: should use ChangeMembersCommand
- 00392.847 W: should use ChangeMembersCommand

Attachments (1)

josm_20210.patch (2.8 KB ) - added by skyper 3 years ago.
patch

Download all attachments as: .zip

Change History (15)

comment:1 by GerdP, 4 years ago

Description: modified (diff)

comment:2 by GerdP, 4 years ago

Description: modified (diff)

comment:3 by GerdP, 4 years ago

Is this something that should be fixed in the presets or do we need a change in RelationChecker?

comment:4 by skyper, 4 years ago

This needs to be fixed in the preset by adding an own preset for type=network plus network:type=node_network relations.

Maybe, this tag combo can be ignored otherwise.

comment:5 by Don-vip, 3 years ago

Component: CoreInternal preset
Keywords: network relation added

comment:6 by skyper, 3 years ago

I can have a look at this. Would a new preset for this kind of network accepted?

comment:7 by Don-vip, 3 years ago

If it's established tagging, sure.

comment:8 by skyper, 3 years ago

Owner: changed from team to skyper

comment:9 by skyper, 3 years ago

Description: modified (diff)
Keywords: node_network added

by skyper, 3 years ago

Attachment: josm_20210.patch added

patch

comment:10 by skyper, 3 years ago

Summary: False positive from RelationChecker for Fietsnetwerk/Radknotenpunktsystem ?[Patch] False positive from RelationChecker for Fietsnetwerk/Radknotenpunktsystem ?

Please, find attached patch file, josm_20210.patch which adds route node network relations as new preset and fixes the validation for network relations.
It does not handle/fix the similar validator warning about the route relations: Type 'node' of relation member with role '' does not match accepted types 'way/closedway' in preset Bicycle Route (458) which would need another own preset for node network route relations.

All along, I am not sure if node network relations, should be included as, so far, they are only present in a few European countries.

comment:11 by skyper, 3 years ago

Owner: changed from skyper to team

comment:12 by Don-vip, 3 years ago

Milestone: 21.07

comment:13 by Don-vip, 3 years ago

Resolution: fixed
Status: newclosed

In 18081/josm:

fix #20210 - add route node network relation as new preset and fix validation for network relations (patch by skyper)

in reply to:  10 comment:14 by skyper, 3 years ago

Replying to skyper:

It does not handle/fix the similar validator warning about the route relations: Type 'node' of relation member with role '' does not match accepted types 'way/closedway' in preset Bicycle Route (458) which would need another own preset for node network route relations.

According to the documentation on the wiki, the nodes are not needed in the route relation.

I forgot to add riding, though, which I've added in #21161 along with some member_expression updates.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
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.