[MapProxy] Merging 3 sources for different scale levels as a single service

Josh Norton joshnortons at gmail.com
Thu Aug 24 17:06:06 PDT 2017


Hi there,

I'm wanting to merge 3 tiled sources into a single tiled service as below:

Global topo service for levels 0-7
Country 1:250k service for levels 8-12 (rendering the global tiles in areas
outside the country covered)
Country 1:50k service for levels 13- (rendering the global tiles for areas
outside the country covered)

I have been able to merge the first 2 services where the country 250k
renders on top of the global service but I am unable to control the scale
that the 250k or 50k tiles start to render.
I have tried specifying a set resolution list, setting min_res and max_res,
num_levels etc

A working configuration file is below with some options commented out in
the grid section that do not produce the desired results.
Grateful for any help anyone can offer.

Josh


*services:*
*  demo:*
*  tms:*
*  wmts:*
*    restful: true*
*    kvp: true*

*layers:*

*-   name: Topo*
*    title: Topo*
*    sources: [topo_cache_gpk]*

*-   name: LINZtopo50*
*    title: LINZ Topo 50*
*    sources: [linz_topo50_cache_gpk]*

*-   name: LINZtopo250*
*    title: LINZ Topo 250*
*    sources: [linz_topo250_cache_gpk]*

*caches:*

*  topo_cache_gpk:*
*    sources: [topo_esri_source, linz_topo250_source]*
*    grids: [GLOBAL_WEBMERCATOR]*
*    cache:*
*      type: geopackage*
*      filename: /opt/mapproxy/cache_data/topo_tiles.gpk*
*      table_name: topo*

*  topo_esri_cache_gpk:*
*    sources: [topo_esri_source]*
*    grids: [GLOBAL_WEBMERCATOR]*
*    cache:*
*      type: geopackage*
*      filename: /opt/mapproxy/cache_data/topo_esri_tiles.gpk*
*      table_name: topo_esri*

*  linz_topo50_cache_gpk:*
*    sources: [linz_topo50_source]*
*    grids: [GLOBAL_WEBMERCATOR]*
*    cache:*
*      type: geopackage*
*      filename: /opt/mapproxy/cache_data/LINZ_topo50_tiles.gpk*
*      table_name: linz_topo50*

*  linz_topo250_cache_gpk:*
*    sources: [linz_topo250_source]*
*    grids: [GLOBAL_WEBMERCATOR]*
*    cache:*
*      type: geopackage*
*      filename: /opt/mapproxy/cache_data/LINZ_topo250_tiles.gpk*
*      table_name: linz_topo250*

*sources:*
*  topo_esri_source:*
*    type: tile*
*    grid: GLOBAL_WEBMERCATOR*
*    url:
http://10.0.0.232:6080/arcgis/rest/services/Topo/MapServer/tile/%(z)s/%(y)s/%(x)s*

*  linz_topo50_source:*
*    type: tile*
*    transparent: true*
*    grid: 'topo50grid'*
*    url:
http://tiles-a.data-cdn.linz.govt.nz/services;key=dd53dc504e3b4c37a627fa41a74ffd2b/tiles/v4/layer=2343/EPSG:3857/%(z)s/%(x)s/%(y)s.png*

*  linz_topo250_source:*
*    type: tile*
*    transparent: true*
*    grid: 'topo250grid'*
*    url:
http://tiles-a.data-cdn.linz.govt.nz/services;key=dd53dc504e3b4c37a627fa41a74ffd2b/tiles/v4/layer=2324/EPSG:3857/%(z)s/%(x)s/%(y)s.png*

*grids:*
*  topo250grid:*
*    base: GLOBAL_WEBMERCATOR*
*    #num_levels: 6*
*    #max_res: 4891.96981025128*
*    #res: [611.49622628141, 305.748113140705, 152.8740565703525,
76.43702828517625, 38.21851414258813, 19.109257071294063]*
*  topo50grid:*
*    base: GLOBAL_WEBMERCATOR*
*    #res: [9.554628535647032, 4.777314267823516, 2.388657133911758,
1.194328566955879, 0.5971642834779395, 0.29858214173896974]    *

*# globals:*
*#   image:*
*#     formats:*
*#       default_format:*
*#         format: image/png*
*#         colors: 0*
*#         resampling_method: bilinear*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20170825/e80ea924/attachment.html>


More information about the MapProxy mailing list