Hi all,

I still struggle with the unit test because it's hard to say what we want to 
get in special cases.
The current code doesn't really work in the way that I expected. I always 
thought that roles like "inner" and "outer" are completely ignored and that 
mkgmap calculates and uses the correct roles. This is only partly true. See 
attached file with MP were a forest contains a lake that contains a forest.
For a nested polygon where the innermost ring has wrong role "inner" this 
doesn't work as expected. The forest  in the lake is ignored. With the correct 
role "outer" it is not ignored. No idea if this is intended or an error. 
Fortunately nested MP are very rare.

Gerd

________________________________________
Von: mkgmap-dev <[email protected]> im Auftrag von Ticker 
Berkin <[email protected]>
Gesendet: Montag, 15. März 2021 17:15
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] tile takes very long time to generate

Hi Gerd

You might consider the some of the ideas here as improvements to the
initial parts of MP processing.

This is a patch based on trunk rather than the new branch. It isn't
structured as for final usage, rather for minimising the spread of
changes, working in parallel with the existing code so I could see if
found the same MP problems as the existing code and having clearly
identifiable diagnostics in the log file.

Ticker

Attachment: mp-nexted-wrong-role.osm
Description: mp-nexted-wrong-role.osm

_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to