[ gpsdrive ] maptiler

Chris h chris123 at magma.ca
Sun Mar 8 17:53:10 AKDT 2009


On Friday 06 March 2009 22:42:14 Chris h wrote:
> Greets:
>
> Perhaps you may want to add this to the list of usefull applications:
>
> http://www.maptiler.org/

There is one issue other then the bug, the tiles are standardized to 256x256 
and Im not sure this is supported by gpsdrive. Actually not sure what tile 
size is required but if Im not mistaken its the same standard as the basemaps

Being BSB licensed and working with the code, the needed change can be made (I 
think) in maptiler>maptiler>gdal2tiles.py 

 def __init__(self, tileSize=256):
                "Initialize the TMS Global Mercator pyramid"
                self.tileSize = tileSize
                self.initialResolution = 2 * math.pi * 6378137 / self.tileSize
                # 156543.03392804062 for tileSize 256 pixels
                self.originShift = 2 * math.pi * 6378137 / 2.0
                # 20037508.342789244

Perhaps someone with interest and some talent (not at this end) could take a 
look at this and if interested adapt this code to gpsdrive. Now that would be 
cool.

Many thanks. 




-- 
/ch


More information about the GPSdrive mailing list