logo separator

[mkgmap-dev] Commit: r2566: Fix center point calculation of large ways and polygons

From WanMil wmgcnfg at web.de on Thu Apr 11 20:27:30 BST 2013

Gerd,

can you please check my changes? My gut feeling tells me that there 
might be a problem. Anyhow I commited it because the error was obvious.

I detected the integer overflow after 900 points located in the 
Netherlands. If you test ways in Australia or Alaska (far away from 
0°/0°) it should overflow much earlier.

Thanks!
WanMil

>
> Version 2566 was committed by wanmil on Thu, 11 Apr 2013
>
> Fix center point calculation of large ways and polygons
>
> There was a possible integer overflow for ways and polygons with a large number of points or in case the points were located far aways from 0°/0°. In this case the center point calculation returned a wrong location.
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>



More information about the mkgmap-dev mailing list