[MapProxy] Idea: Combining Caches
Marc Harter
mharter at adc4gis.com
Tue Jun 15 14:41:31 EDT 2010
What I mean by this is I want to make a WMS request to MapProxy passing
in two layers so my service.yaml would be something like:
cache1:
...
sources:
- type: cache_wms
req:
url: http://..
layers: 1,2,3,4,5,6,7,8
cache2:
...
And in so my WMS request would look like:
http://example.com/proxy/service?SERVICE=WMS&REQUEST=GetMap&LAYERS=cache1,cache2&...
So from the client side I can ask for any combination of "caches" to be
overlayed on top of one another and return one image.
Hopefully that makes sense.
Marc
On Mon, 2010-06-14 at 18:51 +0200, Oliver Tonnhofer wrote:
> On 14.06.2010, at 17:59, Marc Harter wrote:
>
> > It seems to me that you can only request one layer for a WMS service
> > at
> > a time but say I have a cached aerial photography layer and a cached
> > vector layer,
>
> That should work. Is you vector layer transparent and is the req
> option set?
> If it still does not work, can you post you configuration?
>
> > could there be a way to request multiple layers and have
> > them fused into one image dynamically instead of having to build three
> > caches, (one vector, one photo, one both)... could build two.
> >
> > e.g. ?SERVICE=WMS&LAYERS=cache1,cache2&...
>
>
> That should work too. If they come from the same server:
>
> sources:
> - type: cache_wms
> req:
> url: http://
> layers: one,two
>
> and if you have multiple servers then you can add multiple sources.
>
> sources:
> - type: cache_wms
> req: [...]
> - type: cache_wms
> req: [...]
>
> Regards,
> Oliver
>
> --
> Oliver Tonnhofer <olt at omniscale.de>
> Omniscale - Dominik Helle, Oliver Tonnhofer GbR
> Nadorster Str. 60, 26123 Oldenburg
> Tel: +49(0)441/9392774-2 (Fax: 9)
>
More information about the MapProxy
mailing list