[josm-dev] Clockwise coastline, anti-clockwise water

Roy Rankin rrankin at ihug.com.au
Sun Jul 6 15:43:22 BST 2008


Dirk,

http://wiki.openstreetmap.org/index.php/Tag:natural%3Dwater clearly 
states water should be drawn with land on the left and water on the 
right side ie clockwise. And hence counter-clockwise for land. My 
understanding is that this is required for the case of large bodies of 
waters or large islands composed of more than one way. (Although the 
test is only applied for a single closed way)

I just looked at the patch again, and although I corrected the if 
statements, the error messages are wrong for coastline and water. I 
think that errortype should be "Anti-clockwise coastline" and 
"Anti-clockwise water".

Regards,
Roy Rankin


Dirk Stöcker wrote:
> Hello,
> 
> I try to verify patch http://josm.openstreetmap.de/ticket/737
> 
> Now beside the fact, that this contains an better algorithm for clockwise 
> coastline detection, it also fixes a set of problems in the old code.
> 
> Now the result is, that the code works as expected and reports "clockwise 
> coastline" and "clockwise land" as error. But it also reports "anti-clockwise 
> water" as error. There is no doubt, that the original code wanted to do 
> that also, but I found not indication on the website why?
> 
> So my questions. Should water be drawn clockwise or anti-clockwise, or can 
> the check be removed?
> 
> Ciao




More information about the josm-dev mailing list