logo separator

[mkgmap-dev] [PATCH v2] Fix so that all polygons are really closed

From WanMil wmgcnfg at web.de on Sat Feb 26 15:31:53 GMT 2011

Now only lines which endpoints are outside or on the bounding box are 
closed.

WanMil

> As András Kolesár found out the PolygonSplitter did not close all
> polygons. There were several more places in the code where polygons were
> not closed. I am not really sure if that caused any problems in the map
> but definitely the coding was not clean.
>
> The patch fixes the conversion between mkgmap objects (List<Coord>) and
> Java2D objects (Polygon, Area). Additionally the StyleConverter ensures
> that lines which are assigned with polygonal garmin types are closed by
> adding the first coord to its list of points.
>
> Please test and inspect the polygons crossing the tile borders in
> particular.
>
> WanMil
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: polygonclose_v2.patch
Type: text/x-patch
Size: 13257 bytes
Desc: not available
Url : http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20110226/a4315aed/attachment.bin 


More information about the mkgmap-dev mailing list