NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi, I'm a user of JOSM, not a develloper. I have ask similar questions in the Dutch user forum, but only got replies like : "Yep, the validation in JOSM might not be optimal"

I'm a user and editor of the recreational cycle network in The Netherlands and it can cost me considerable time to figure out what's wrong with network relations. Especially so when infact the error report is the only thing that's wrong :(

Here is one of many examples :

network=rcn note=23-62 route=bicycle type=route Relation ID=1263377

JOSM 7000 Validation : Role forward unknown Role backward unknown

http://ra.osmsurround.org/

Great! This relation seems ok. This relation can be connected as one piece.

Rating The relation analyzer (RA) tries to assemble the relation data to see if it is in one piece (either a line with just two ends, or Y-shaped, or more complicated). The pieces are assembled using rules which include looking at roles such as "forward" and "backward". If a relation cannot be connected into one single piece, the RA will create more than one.

Can someone enlight me please ?

Gys

asked 05 May '14, 20:42

Gys%20de%20Jongh's gravatar image

Gys de Jongh
7131514
accept rate: 16%

edited 06 May '14, 01:20

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

User SomeOneElse (Andy) mailed two very useful links. I copied them below to clarify a few points.

The route looks like two letters Y joined together :

http://www.openstreetmap.org/relation/1263377#map=17/51.66097/5.28077&layers=CN

It might look odd but Imo this is a combination of 3 factors :

1) The elaborate cycle infra structure in The Netherlands. For our local hero have a look at this blog : http://bicycledutch.wordpress.com/

The two branches of the top Y are two completely separate bicycle tracks along a motorway. Same for the two branches of the lower Y.

This piece :

http://www.openstreetmap.org/relation/1263377#map=17/51.66097/5.28077&layers=CN

has no attached role is an old village road with no separate bicycle tracks. The cycle route uses this piece both to travel from 23 to 62 as well as to travel from 62 to 23

2) The actual route made by the people who maintain them. Which is apparent from the little whight/green cycle node signs. The little piece with the backward role is not a oneway road. It connects the residential road with the roundabout. You could travel in the other direction then the direction in which the road was drawn. Meaning you won't get trouble with the police. But the people who maintain the network decided that you should only use that piece opposite to the direction it was drawn.

3) In which case Osm wants the role to be "backward" or I could change the direction of drawing of that piece of road to stop JOSM from cying "wolf" But that is not recommended and feels like tagging for the renderer.

If you zoom a bit further on the link to the relation than you will see that the top Y ends in two rcn_ref=23 and the lower Y ends in two rcn_ref=62 . Both rcn_ref=23 and rcn_ref=62 are just on the left and right side of the road.

The physical situation for both is a motorway with two completely separate bicyle tracks. So the two nodes rcn_ref=62 are maybe 20 meters apart. Same for rcn_ref=23. In that case the recommende solution is two nodes with the same number in stead of painstakingly splitting up to connect the cycletrack for 23-62 with the cycle track for 62-23

So, I really don't see anything wrong.

The relation is continuous now. It was not before. This actually is the reason I edited it. I must have travalled this route by bike a few hundred times at least, so I know the situation. JOSM validation can generate a "not continuous error" but it nolonger does so.

The "wrong role" error in the JOSM validator can be selected while you have the relation editor open, but nothing is highligted there. On the map the whole relation is highligted. Not very helpfull :(

Gys

(06 May '14, 21:17) Gys de Jongh

If I use this

http://yournavigation.org/index.php

service and zoom in maximally then the shortes bicycle route from the western rcn_ref=23 to the western rcn_ref=62 is drawn completely as intended by the maintainers of the cycle network.

The shortes bicycle route from eastern rcn_ref=62 to the eastern rcn_ref=23 is drawn as intended by the maintainers of the cycle network if I add one extra waypoint in the first roudabout junction Postweg/Loonsebaan. If I leave this extra waypoint out then then the calculated route follows this roundabout junction in the other direction. Which is both legal and possible but not as intended by the maintainers of the cycle network.

Again the route relation seems perfectly Ok

(06 May '14, 21:18) Gys de Jongh

sorry, Gys, you are wrong in this help site. Please discuss such specific problems elsewhere - eg. in the forum.

(07 May '14, 01:28) aseerel4c26 ♦
2

@aseerel4c26 Er, what? Asking how JOSM picks up rules for different relation types seems to me exactly on-topic for this help site. As mentioned above, this question was previously asked in the forum (and also on the newbies list), so sending the user back there is unlikely to help.

(07 May '14, 01:32) SomeoneElse ♦

@SomeoneElse: I think a forum is exactly the best place for the specific problem. By the way: no forum link to the first post given. :-( What can be said in general, is in my answer below ... but the question (and "comments" - which were "answers" too) is much too specific for this site. You notice it already by the use of the "answer" function for a additional comments (which are TL;DR).

Oh, and if the question is "how JOSM picks up rules for different relation types", then it has the wrong title.

(07 May '14, 01:43) aseerel4c26 ♦
2

@aseerel4c26: Congrats you just restored my trust in humanity. In any forum there will always be a helpful guy who replies that this is the wrong forum or points to a spelling error. Godwins Law Thanks

(07 May '14, 07:47) Gys de Jongh

@aseerel4c26 If you think the comments are Tl;Dr have JOSM check your attention span and go back to Imgur

(07 May '14, 08:06) Gys de Jongh

@Gys de Jongh: is there any need for those personal attacks? Please ...

(07 May '14, 13:46) aseerel4c26 ♦
1

Good question, on an issue which has been bugging quite a lot of us without any resolution. Thanks for raising it and getting us just a little further on the way to resolving the issue.

(07 May '14, 18:12) Frankl2009
showing 5 of 9 show 4 more comments

It's a bug in the JOSM validator, I think. For item name="Bicycle route" "data/defaultpresets.xml" contains:

        <roles>
            <role key="" text="route segment" requisite="required" type="way"/>
        </roles>

whereas for item name="Piste route" it contains:

        <roles>
           <role key="" text="route segment" requisite="optional" type="way" />
            <role key="forward" text="forward segment" requisite="optional" type="way" />
            <role key="backward" text="backward segment" requisite="optional" type="way" />
            <role key="link" text="link segment" requisite="optional" type="way" />
            <role key="shortcut" text="shortcut segment" requisite="optional" type="way" />
            <role key="variant" text="variant segment" requisite="optional" type="way" />
            <role key="start" text="entry points" requisite="optional" type="node" />
        </roles>

I can see no logical reason why a bicycle route way can't be oneway.

A similar symptom was reported here (although that looks like it wasn't actually a bug as such - it was due to a confusion of the "new" and "old" public transport schemas).

permanent link

answered 07 May '14, 03:16

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

Thanks Andy, Imo you traced down the error in JOSM's validator. This will be most helpful for The Netherlands. We have a very dense cycle network which is becomming almost impossible to maintain because about 30% of the routes are polluted with JOSM validator errors. I will post a link on the forum here : http://forum.openstreetmap.org/viewforum.php?id=12

Thanks again Gys

(07 May '14, 07:59) Gys de Jongh
4

JOSM developers are very unlikely to notice complaints on the Dutch forum and only slightly more likely to notice problems reported here. So I create a bug report for this issue: http://josm.openstreetmap.de/ticket/9992

(07 May '14, 11:21) cartinus
1

Gys, for maintaining the cycle and walking networks in Belgium and The Netherlands, you're better off with e.g. http://osma.vmarc.be/ which has specialized tests and knowledge about those type of networks.

(07 May '14, 12:34) escada

Thanks escada, I find myself frequently looking at this : http://osma.vmarc.be/en/network/1061480 because it's in my back yard. Note the frustrating numbers of "Errors" I would like to get rid of all of them :(

(07 May '14, 20:32) Gys de Jongh
1

@cartinus thanks a lot ! I don't know what you did, but to me it sounds like exactly what I would have liked to do : wake up the programmers to improver their error checking in JOSM :)

Thanks again Gys

(07 May '14, 20:42) Gys de Jongh

In general, JOSM's validator is just a tool like many others which might help you to spot problems in the data. It may have false positives. JOSM's validator has different issue classes (error, warning, info) which show you the severity of the shown issue and – IMHO – correlate with false positive error rate. Such tools are never 100 % right.

Regarding the validator's warning about relation member roles also see the similar (core) problem what-does-the-warning-role-reverse-unknown-role-verification-problem-mean-in-josm.

If you feel that a false positive is a programming error (e.g. a systematic false positive which occurs very often which was not shown in the older versions) or if there are many false positives which could be easily avoided, please report to the programmers of JOSM (bug tracker, see first link).

Also see my comment above for other discussion places.

permanent link

answered 07 May '14, 01:37

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554
accept rate: 18%

edited 07 May '14, 02:03

@aseerel4c26: If a tool bites you it's a bug and as I told you 1) I'm not a programmer of JOSM just a user 2)I posted this on several fora already

(07 May '14, 07:53) Gys de Jongh

@Gys de Jongh: Sure, I read that you are no programmer but I told you how to report it to the programmers. Programmers depend on feedback and bugreports of the users. It seems you missed this. In the meantime, Cartinus has reported it there (see his comment above).

(07 May '14, 13:45) aseerel4c26 ♦

@aseerel4c26 Can you please fire your other brain cell ? What do you think I'm doing ? I started this thread by saying that I'm not a programmer and want to provide feedback to the guys who devellop JOSM and posted this at the appropriate sites.

(07 May '14, 20:36) Gys de Jongh

@Gys de Jongh: unbelievable, I hope someone soon deletes your comment (this one then too, of course).

(07 May '14, 20:54) aseerel4c26 ♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×622
×179
×128
×13
×12

question asked: 05 May '14, 20:42

question was seen: 13,436 times

last updated: 07 May '14, 20:54

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum