Validator: Unordered coastline

View: New views
5 Messages — Rating Filter:   Alert me  

Validator: Unordered coastline

by Matthias Julius :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Validator just gave me an "Unordered coastline" error and highlighting
the last node for a coastline I had been working on.  What does that
mean?

The notion of unordered ways made sense when we still had segments.
But how can a simple list of nodes be unordered?

This error is not listed on
http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Validator#Validations
Is there another source of information about validator checks besides
"Read the Source, Luke!"?

Matthias

_______________________________________________
josm-dev mailing list
josm-dev@...
http://lists.openstreetmap.org/listinfo/josm-dev

Re: Validator: Unordered coastline

by Dave Hansen-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 2009-11-03 at 10:24 -0500, Matthias Julius wrote:
> Validator just gave me an "Unordered coastline" error and highlighting
> the last node for a coastline I had been working on.  What does that
> mean?

You probably just need to turn on the drawing of direction arrows in
your preferences.  I think that one means that you have two ways that
are pointing in opposite directions:

        --->----><----<---<---

-- Dave


_______________________________________________
josm-dev mailing list
josm-dev@...
http://lists.openstreetmap.org/listinfo/josm-dev

Re: Validator: Unordered coastline

by Teemu Koskinen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 03 Nov 2009 17:34:47 +0200, Dave Hansen <dave@...> wrote:

> On Tue, 2009-11-03 at 10:24 -0500, Matthias Julius wrote:
>> Validator just gave me an "Unordered coastline" error and highlighting
>> the last node for a coastline I had been working on.  What does that
>> mean?
>
> You probably just need to turn on the drawing of direction arrows in
> your preferences.  I think that one means that you have two ways that
> are pointing in opposite directions:
>
> --->----><----<---<---
>

Yes, or more generally, the last node is not connected to first node of  
another coastline-way.
Maybe it should be called something else than "unordered coastline", any  
suggestions?


Teemu Koskinen

_______________________________________________
josm-dev mailing list
josm-dev@...
http://lists.openstreetmap.org/listinfo/josm-dev

Re: Validator: Unordered coastline

by Matthias Julius :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Matthias Julius <lists@...> writes:

> Validator just gave me an "Unordered coastline" error and highlighting
> the last node for a coastline I had been working on.  What does that
> mean?
>
> The notion of unordered ways made sense when we still had segments.
> But how can a simple list of nodes be unordered?
>
> This error is not listed on
> http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Validator#Validations
> Is there another source of information about validator checks besides
> "Read the Source, Luke!"?

Actually, I just did that.  And it seems like this error is shown when
either the first node of the way is not the last node of the privious
way or the last node is not the first node of the next way.

I'll include that on the wiki.

Now, looking at my data I don't see why this error comes up.  The node
in question only belongs to the two coastline ways and it is the first
and last node respectively.

Next, I have uploaded my data to give everybody the chance to look at
it and the error is gone :-/

Now I am completely mystified.  Uploading of the 'buggy' data has
fixed it.

Could it be that backreferenceDataSet.getParents() returns deleted
ways?

Matthias

_______________________________________________
josm-dev mailing list
josm-dev@...
http://lists.openstreetmap.org/listinfo/josm-dev

Re: Validator: Unordered coastline

by Andre Hinrichs-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Dienstag, den 03.11.2009, 10:24 -0500 schrieb Matthias Julius:

> Validator just gave me an "Unordered coastline" error and highlighting
> the last node for a coastline I had been working on.  What does that
> mean?
>
> The notion of unordered ways made sense when we still had segments.
> But how can a simple list of nodes be unordered?
>
> This error is not listed on
> http://wiki.openstreetmap.org/wiki/JOSM/Plugins/Validator#Validations
> Is there another source of information about validator checks besides
> "Read the Source, Luke!"?

I've done a lot coastline fixing and there were two cases were I've seen
this error:
1.) There are two coastlines connected with reversed directions (I've
never seen this "reversed coastline" you stated in another mail)
2.) There are two coastlines overlapping.

Solution for 1.) is easy: Reverse the coastline so that land is on the
left hand side.

Solution for 2.) is more difficult as the coastlines may have different
lengths and sometimes they are member of relations. Worst case is that
both ways are member of different relations. Then possibly only a local
member can fix this. If you delete one of these ways make sure that
there is no gap in the resulting coastline.


Andre



_______________________________________________
josm-dev mailing list
josm-dev@...
http://lists.openstreetmap.org/listinfo/josm-dev