[MapProxy] Only one source element?

Oliver Tonnhofer tonnhofer at omniscale.de
Fri Jan 30 01:50:23 PST 2015


Hi,

"tagged source names” might be what you want: http://mapproxy.org/docs/nightly/sources.html#tagged-source-names


Regards,
Oliver

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



> On 28.01.2015, at 14:51, ahmad eljajie <ae82 at gmx.de> wrote:
> 
> Hallo list,
>  
> we use the mapproxy_plugin-master for QGIS and want to edit the yaml files with our own WMS.
>  
> This works but we have to create one source element entry for every layer.
> 
> Is it possible to have only one resource element for multiple layers?
>  
> What we have:
>  
> """
> layers:
>   - name: '2'
>     title: Bundeslaender_neu
>     sources: [bkg]
>   - name: '5'
>     title: Namen
>     sources: [bkg_Namen]
> caches:
>    bkg:
>     grids: [web]
>     sources: [bkg]
>    bkg_Namen:
>     grids: [web]
>     sources: [bkg_Namen]
> sources:
>    bkg:
>     type: wms
>     req:
>       url: http://sg.geodatenzentrum.de/wms_vg1000
>       layers: 2
>     coverage:
>       bbox: [5.6, 47.3, 15.9, 55.2]
>       srs: 'EPSG:4326'
>    bkg_Namen:
>     type: wms
>     req:
>       url: http://sg.geodatenzentrum.de/wms_vg1000
>       layers: 5
>     coverage:
>       bbox: [5.6, 47.3, 15.9, 55.2]
>       srs: 'EPSG:4326'
> """
>  
> What we want...
>  
> """
> layers:
>   - name: '2'
>     title: Bundeslaender_neu
>     sources: [bkg]
>   - name: '5'
>     title: Namen
>     sources: [bkg]
> caches:
>    bkg:
>     grids: [web]
>     sources: [bkg]
> sources:
>    bkg:
>     type: wms
>     req:
>       url: http://sg.geodatenzentrum.de/wms_vg1000
>       layers: 2, 5
>     coverage:
>       bbox: [5.6, 47.3, 15.9, 55.2]
>       srs: 'EPSG:4326'
> """
>  
> Thanks.
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapproxy



More information about the MapProxy mailing list