[MapProxy] Different source depending on zoom level

Oliver Tonnhofer olt at omniscale.de
Thu Mar 1 10:03:29 EST 2012


On 01.03.2012, at 15:57, Pasithee Jupiter wrote:
> Is it possible that MapProxy sources and caches WMS images based on the map zoom (resolution) automatically?
> 
> what I want is that MapProxy requests a WMS-Server for the first half zoom levels and for the remaining zoom levels another WMS-Server.
> First: is that possible?

Yes that should work.

> Second: Do I have to do it with max_res, min_res / max_scale, min_scale
> Third: If yes, could you provide a short example



You need to define two WMS sources. One with a min_res and one with a max_res (see http://mapproxy.org/docs/nightly/sources.html#min-res-max-res-or-min-scale-max-scale)
Then you need to add these sources to your cache. 

Regards,
Oliver

-- 
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://bitbucket.org/olt | @oltonn






More information about the MapProxy mailing list