[MapProxy] MBTiles: multiple grids stored in single tiles table

Oliver Tonnhofer olt at omniscale.de
Mon Jul 3 07:58:50 PDT 2017


Hi,

yes, the filename option doesn't work with multiple grids.

The tile_sources option for layers might be a solution, if you only need to access these two grids/caches with WMTS and not WMS: https://mapproxy.org/docs/nightly/configuration.html#tile-sources

Regards,
Oliver

-- 
Oliver Tonnhofer  | Omniscale GmbH & Co KG  | https://omniscale.com
OpenStreetMap WMS and tile services         | https://maps.omniscale.com



> On 03.07.2017, at 13:13, Just van den Broecke <just at justobjects.nl> wrote:
> 
> Hi,
> 
> I am trying to use two grids (GLOBAL_MERCATOR and the Dutch National tiling grid) with MBTiles caching. Something like:
> 
>  my_mbtiles_cache:
>    grids: [dutch_grid, merc_grid]
>    sources: [my_wms]
>    format: image/jpeg
>    cache:
>      type: mbtiles
>      [filename: my.mbtiles]
> 
> With e.g. Filecaches, one cache per grid is created. But with MBTiles the tiles for the two grids are created in a single "tiles" table in a single sqlite file "my.mbtiles". I would expect two MBTiles files, named after the grids. Also if I leave "filename" out a single "my_mbtiles_cache.mbtiles" file is created. (Defining two MBTiles caches is a bit complicated now, as this would require renaming Layers).
> 
> I realize MBTiles assumes a single tiling schema/grid, GLOBAL_(WEB)MERCATOR . Possibly I should move to sqlite or geopackage caches, the latter storing more metadata and a single tiles table per grid...
> 
> Best,
> 
> Just van den Broecke
> 
> 
> 
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapproxy



More information about the MapProxy mailing list