[Talk-ee] Administrative division

Jaak Laineste jaak at nutiteq.com
Tue Sep 8 08:21:45 BST 2009


> > Anyway, one of the issues (even looking at them takes a while) in the
> > area errors file seems to stem from incorrect node selection for
> > merging
> > -- I've got no clue how this can happen. Seems like a spike between
> > two nodes close to each other. This might even be detectable in a
> script.
> > For each way check the sequence of nodes. If node n is much closer to
> > node n+2 than to node n+1, then delete node n+1 from the sequence.
> >
> > Okay ... as usual I gave it a try and hacked some proof of concept
> ...
> > http://andre.grueneberg.de/osm/remove_spikes.pl ... at least it's
> > removing 3543 "suspicious nodes" ...
> > But maybe I'm totally off the track ...
> 

I did not try your removal script yet, but I made some samples of different
spike cases what I've spotted. The easy one is also most common, but also 2
polygons involved happens in maybe 20% of cases. Island case is quite rare.

/Jaak
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spike_complex_2polygons_involved.png
Type: image/png
Size: 7786 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/talk-ee/attachments/20090908/765bc6b2/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spike_cutout_island.png
Type: image/png
Size: 8039 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/talk-ee/attachments/20090908/765bc6b2/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spike_easy.png
Type: image/png
Size: 8369 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/talk-ee/attachments/20090908/765bc6b2/attachment-0002.png>


More information about the Talk-ee mailing list