
Hi Andrzej, okay, good points. That would probably also happen with a simple input filter in mkgmap. I'll see if I can improve splitter, I think it should be possible. Gerd ________________________________________ Von: mkgmap-dev-bounces@lists.mkgmap.org.uk <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Andrzej Popowski <popej@poczta.onet.pl> Gesendet: Sonntag, 6. März 2016 15:49 An: mkgmap-dev@lists.mkgmap.org.uk Betreff: Re: [mkgmap-dev] problem with splitter and bounding polygon Hi Gerd,
We already have UnusedElementsRemoverHook.java which magically detects elements in the input file which will not appear in the output file. If we change this filter to check against a poly instead of a bbox it might be good enough.
I have already tested something like that, I have extracted USA using osmosis and bounding poly. I don't like results, mostly because filtering is not precise. For example I can get a full lake area on a map but all object on an island are missing, because they are entirely outside poly, while lake is partially inside. Or I can get contours, where missing middle part is replaced by a straight line. If you are thinking about filtering in mkgmap or splitter, then I would prefer it as a precise cut and trim with bounding poly. -- Best regards, Andrzej _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev