logo separator

[mkgmap-dev] [PATCH v1] Some inner areas are ignored in mulitpolygon processing

From WanMil wmgcnfg at web.de on Sat Mar 26 10:05:00 GMT 2011

The multipolygon processing makes heavy use of the java.awt.Area class. 
Calling

List<Area> allAreas = .....;
List<Area> toRemoveAreas = .....;
allAreas.removeAll(toRemoveAreas);

sometimes does not remove the areas in toRemoveAreas but some more. The 
patch does not longer use removeAll but checks for identity before 
removing an area. (I hope I found all places...)

As a result sometimes some inner polygons were not cut out from the 
outer polygon.

WanMil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mp_missing_cuts_v1.patch
Type: text/x-patch
Size: 982 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20110326/1549e725/attachment.bin 


More information about the mkgmap-dev mailing list