
26 Feb
2011
26 Feb
'11
3:31 p.m.
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