logo separator

[mkgmap-dev] [PATCH] Splitter area rounding seems wrong

From Bartosz Fabianowski bartosz at fabianowski.eu on Sun Aug 28 13:22:24 BST 2011

Hi list

I am debugging a coastline/sea generation issue and in the process of 
this, discovered what I believe to be a splitter bug.

There is a method in RoundingUtils.java that rounds the boundaries of an 
area to multiples of Garmin units. The minimum and maximum longitude are 
both rounded down while the minimum and maximum latitude are both 
rounded up. The resulting rounded area is therefore shifted relative to 
the original area and does not necessarily bound all the data.

This looks like a bug to me. The attached patch rounds the minimum 
longitude/latitude down and the maximum longitude/latitude up, making 
sure that the rounded area always fully contains the original area.

- Bartosz
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_splitter
Url: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20110828/ccfac03b/attachment.pl 


More information about the mkgmap-dev mailing list