logo separator

[mkgmap-dev] [Patch] Faster BoundaryGrid

From GerdP gpetermann_muenchen at hotmail.com on Wed May 2 11:49:59 BST 2012

Hi WanMil,

attached is a small patch which drastically improves BoundaryGrid for 
tiles that contain mostly sea. I found such a tile in south-america, and the
patched version is > 10 times faster. 
It contais a large part of the pacific, and BoudaryGrid searches the
boundary zip file for 
> 5000 different *.bnd files, most of them do not exist in your
> bounds_20120401.zip , so the 
code in BoundaryUtil searches through all elements of the zip file to find
out that it doesn't exist.

The patch creates a HashSet first with the  available files and calls the
load routine only for 
those that exist.

Gerd
http://gis.19327.n5.nabble.com/file/n5680180/BoundaryGrid.java.patch
BoundaryGrid.java.patch 


--
View this message in context: http://gis.19327.n5.nabble.com/Patch-Faster-BoundaryGrid-tp5680180.html
Sent from the Mkgmap Development mailing list archive at Nabble.com.



More information about the mkgmap-dev mailing list