def wms_111_cap_url(url): parsed_url = urlparse.urlparse(url) base_req = BaseRequest( url=url.split('?', 1)[0], param=url_decode(parsed_url.params), ) base_req.params['service'] = 'WMS' base_req.params['version'] = '1.1.1' base_req.params['request'] = 'GetCapabilities' return base_req.complete_url
def wms_capapilities_url(url, version): parsed_url = urlparse.urlparse(url) base_req = BaseRequest( url=url.split('?', 1)[0], param=url_decode(parsed_url.query), ) base_req.params['service'] = 'WMS' base_req.params['version'] = version base_req.params['request'] = 'GetCapabilities' return base_req.complete_url
def __init__(self, param=None, url='', validate=False, non_strict=False, **kw): self.non_strict = non_strict BaseRequest.__init__(self, param=param, url=url, validate=validate, **kw)
def __init__(self, param=None, url="", validate=False, non_strict=False, **kw): self.non_strict = non_strict BaseRequest.__init__(self, param=param, url=url, validate=validate, **kw) self.adapt_to_111()
def __init__(self, param=None, url="", validate=False, http=None): BaseRequest.__init__(self, param, url, validate, http) self.url = rest_identify_endpoint(url)
def __init__(self, param=None, url='', validate=False, http=None): BaseRequest.__init__(self, param, url, validate, http) self.url = rest_identify_endpoint(url)
def __init__(self, param=None, url='', validate=False, http=None): BaseRequest.__init__(self, param, url, validate, http) self.url = self.url.rstrip("/") if not self.url.endswith("export"): self.url += "/export"