[josm-dev] JOSM extension for orthogonalizing ways

andrzej zaborowski balrogg at gmail.com
Fri Oct 31 10:25:54 GMT 2008


Hi,

2008/10/31 Harald Kucharek <harald.kucharek at gmx.net>:
>
> -------- Original-Nachricht --------
>> Datum: Fri, 31 Oct 2008 09:11:46 +0000
>> Von: "Brian Quinion" <brian at brian.quinion.co.uk>
>> An: "Frederik Ramm" <frederik at remote.org>
>> CC: harald.kucharek at gmx.net, josm-dev at openstreetmap.org
>> Betreff: Re: [josm-dev] JOSM extension for orthogonalizing ways
>
>> Hi,
>>
>> Sounds good - I keep hitting problems where I have a rectangle that
>> has an extra point on on of the edges and so can't easily use the
>> existing functionality.
>
> Hmmm, I guess, this case would also not be accepted by my function, as one of the prerequisites is, that every segment must have a distinct direction change compared to the segment before. Otherwise I had to handle the case of collinear segments or segments where direction changes only slightly. Would be difficult to decide what to do with those. But I'm open for any ideas.

I was bothered by the same thing and I think it could be helped by
treating direction changes of < 45 deg as 0 deg, i.e. align the
consecutive points in line or as if there was no node there at all.

Cheers




More information about the josm-dev mailing list