[MapProxy] Serving MBTiles via MapProxy

Oliver Tonnhofer olt at omniscale.de
Fri Dec 9 10:15:33 EST 2011


On 09.12.2011, at 13:58, Jorge Arévalo wrote:

> Ok, if helps, this is my MBTiles file (~ 60MB):
> http://dl.dropbox.com/u/6599273/data/tiles_F.mbtiles
> 
> [...]
> grids:
> my_grid:
>   tile_size: [256, 256] # size of the PNG files
>   srs: 'EPSG:900913' # gdal2tiles uses that output srs for generated tiles
>   res: [9783.93961875000059, 4891.96980937500030,
> 2445.98490468750015, 1222.99245234375007, 611.49622617187504,
> 305.74811308593752, 152.87405654296876, 76.43702827148438,
> 38.21851413574219, 19.10925706787109, 9.55462853393555] # the
> resolutions at zoom levels 4-14, the generated zoom levels.
>    res_factor: 2
>    bbox_srs: 'EPSG:4326'
>    bbox: [-6.54,38.35,-3,40.65]


You need to use the grid from your MBTiles file and it seams that your grid uses the "classical" web mercator grid. So you should just use GLOBAL_MERCATOR.


Regards,
Oliver

-- 
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://bitbucket.org/olt | @oltonn






More information about the MapProxy mailing list