[MapProxy] mapproxy (merging two caches into one layer)

Travis Kirstine traviskirstine at gmail.com
Tue Jun 18 08:11:28 PDT 2019


I think you need to perform the merge at the cache level and I believe you
need to store the tiles. Try something like this:

caches:
  sbm_osm_kombiniert_farb_eur:
    grids: [epsg2056_lv95_europa]
    sources: [sbm_osm_kombiniert_farb_eur_source]
  sbm_osm_kombiniert_farb_sui:
    grids: [epsg2056_lv95_voll]
    sources: [sbm_osm_kombiniert_farb_sui_source]
    disable_storage: true
  merged_cache_osm:
    grids: [ epsg2056_lv95_voll, epsg2056_lv95_europa]
    sources: [sbm_osm_kombiniert_farb_eur_source,
sbm_osm_kombiniert_farb_sui_source]
    # other stuff - meta_buffer / meta_size etc....
    cache:
      type: # all your cache parameters

layers:
- name: sbm_osm_kombiniert_farb
  title: sbm_osm_kombiniert_farb
  tile_sources: [merged_cache_osm]





...





On Tue, 18 Jun 2019 at 09:22, Schmutz Daniel <d.schmutz at schaellibaum.ch>
wrote:

> Hello Mapproxy-Mailing-List
>
>
>
> We would like to merge two caches into one layer but are having
> difficulties.
>
>
>
> We have pre-generated all required Tiles (dataformat=png, size=512x512px)
> for all of our zoom levels for all of our maps (source type=mapnik), using
> the seeding functionality. When all of the Tiles were generated, we made
> all folders immutable (read only) (sudo chattr -R +i
> /home/administrator/Data/mpy/sbm_av_grau_EPSG2056), withholding Mapproxy
> from generating unwanted Tiles. These Tiles are used in WMS and WMTS
> connections.
>
>
>
> We now want to merge two particular caches (two folders/layers having the
> same tile size, the same srs, the same origin, the same stretch factor but
> different bbox). We would like to access the Tiles directly (source
> type=mapnik is no longer required as all Tiles are available).
>
>
>
> We have made a transition between the individual caches (max_res=650 and
> min_res=650). The problem that we are having is that we can only see one of
> the caches but never both at the same time. The merged layer in our
> configuration file is called ‚sbm_osm_kombiniert_farb‘.
>
>
>
> Have attached the yaml configuration file.
>
>
>
> Any help would be appreciated.
>
> Thanks and Regards Daniel
>
>
>
> Attachment: mpy_conf_main.yaml mpy_conf_main.yaml
>
>
>
> Freundliche Grüsse
>
> Daniel Schmutz
>
>
>
> *Schällibaum AG   Ingenieure und Architekten,   Ebnaterstrasse 143,
> CH-9630  Wattwil*
>
> T +41 71 987 60 90, F +41 71 987 60 91, *www.schaellibaum.ch
> <http://www.schaellibaum.ch/>*
>
>
>
> Daniel Schmutz, Geomatikingenieur
>
> Direkt +41 71 987 00 68, Mobile +41 79 479 76 55, Email
> d.schmutz at schaellibaum.ch
>
>
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapproxy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20190618/8e8fb6fa/attachment.html>


More information about the MapProxy mailing list