[MapProxy] uppercase values for get keys (WMSMapRequestParams)

Oliver Tonnhofer olt at omniscale.de
Mon Mar 28 10:03:23 EDT 2011


On 27.03.2011, at 04:33, Adon Metcalfe wrote:
> I'm not exactly sure how to go about making an option that gets passed all the way through to the RequestParams object (maybe override query_string with a new WMSMapUpperRequestParams class and add a new source type (wms_upper?) that uses it over WMSMapRequestParams for sources requiring uppercase parameters?)

The *RequestParams classes are subclassed a few times, WMS130MapRequestParams is based on WMSMapRequestParams, etc. So thats not feasible. I would put that into the WMSClient and then either tranform the URL, or call a new method of RequestParams (e.g request_url(uppercase_keys=True)).

Regards,
Oliver

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





More information about the MapProxy mailing list