[josm-dev] [OSM-talk] Coastline checker / fixer

Dave Hansen dave at sr71.net
Thu Apr 3 00:42:05 BST 2008


On Thu, 2008-04-03 at 00:18 +0100, Mark Williams wrote:
> Can anyone tell me why Validator (the normal one) chokes on this
> http://www.openstreetmap.org/?lat=51.49219&lon=0.27476&zoom=17
> please? I can reverse the way all I like, it's not duplicated, it's
> clockwise whichever way the arrows go though!

The problem is that the validator looks at only one of the segments to
determine whether or not it is clockwise.  It just checks to see if a
particular pair of nodes is a certain direction away from the others.
This works for perfectly round bodies of water, but not for all weird
shapes.  It's just broken.  I rewrote this particular check.

Look at WronglyOrderedWays.java in here:

http://dev.openstreetmap.org/~daveh/josm/016/plugins-16.diff

-- Dave





More information about the josm-dev mailing list