Пример #1
0
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
Пример #2
0
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
Пример #3
0
 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)
Пример #4
0
 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)
Пример #5
0
 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()
Пример #6
0
    def __init__(self, param=None, url="", validate=False, http=None):
        BaseRequest.__init__(self, param, url, validate, http)

        self.url = rest_identify_endpoint(url)
Пример #7
0
    def __init__(self, param=None, url='', validate=False, http=None):
        BaseRequest.__init__(self, param, url, validate, http)

        self.url = rest_identify_endpoint(url)
Пример #8
0
    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"