[Tilesathome] close-areas bugfix

Frederik Ramm frederik at remote.org
Thu Oct 2 00:49:11 BST 2008


Hi,

    Dirk Stoecker has reported a close-areas bug where it seems that the 
point-inside-polygon detection did not work properly, causing 
close-areas to create dual multipolygon relations where relation 1 would 
have way A as inner and way B as outer, while relation 2 would have way 
A as outer and way B as inner.

I have fixed this bug by replacing the point-inside-polygon detection 
with a completely different algorithm that seems to work all right for 
my test cases, but I'd ask everyone to be on the lookout for strange 
behaviour.

I also modified the XML parsing to support multi-line tags; someone 
(forgot who and cannot find mail!) reported that sometimes OSMXapi would 
produce multi-line <osm> tags which where then not properly parsed by 
close-areas, creating an invalid output file. This is fixed now, 
although I could not get OSMXapi to send me a multi-line tag.

If anyone is unhappy with the way close-areas does its own XML parsing, 
feel free to fix it (you could probably break the XML parsing code out 
of or/p where it is done "properly" and use it in close-areas).

Bye
Frederik

-- 
Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00'09" E008°23'33"




More information about the Tilesathome mailing list