def getcapabilities(self): """Request and return capabilities document from the WFS as a file-like object. NOTE: this is effectively redundant now""" reader = WFSCapabilitiesReader(self.version, auth=self.auth) return openURL(reader.capabilities_url(self.url), timeout=self.timeout, auth=self.auth)
def __init__( self, url, version, xml=None, parse_remote_metadata=False, timeout=30, username=None, password=None, auth=None, ): """Initialize.""" if auth: if username: auth.username = username if password: auth.password = password self.url = url self.version = version self.timeout = timeout self.auth = auth or Authentication(username, password) self._capabilities = None reader = WFSCapabilitiesReader(self.version, auth=self.auth) if xml: self._capabilities = reader.readString(xml) else: self._capabilities = reader.read(self.url) self._buildMetadata(parse_remote_metadata)
def __init__( self, url, version, xml=None, parse_remote_metadata=False, timeout=30, headers=None, username=None, password=None, auth=None, ): """Initialize.""" if auth: if username: auth.username = username if password: auth.password = password else: auth = Authentication() super(WebFeatureService_2_0_0, self).__init__(auth) log.debug("building WFS %s" % url) self.url = url self.version = version self.timeout = timeout self.headers = headers self._capabilities = None reader = WFSCapabilitiesReader(self.version, headers=self.headers, auth=self.auth) if xml: self._capabilities = reader.readString(xml) else: self._capabilities = reader.read(self.url) self._buildMetadata(parse_remote_metadata)
def getcapabilities(self): """Request and return capabilities document from the WFS as a file-like object. NOTE: this is effectively redundant now""" reader = WFSCapabilitiesReader(self.version) return openURL(reader.capabilities_url(self.url), timeout=self.timeout, username=self.username, password=self.password)
def __init__(self, url, version, xml=None, parse_remote_metadata=False, timeout=30, username=None, password=None): """Initialize.""" if log.isEnabledFor(logging.DEBUG): log.debug('building WFS %s' % url) self.url = url self.version = version self.timeout = timeout self.username = username self.password = password self._capabilities = None reader = WFSCapabilitiesReader(self.version, username=username, password=password) if xml: self._capabilities = reader.readString(xml) else: self._capabilities = reader.read(self.url) self._buildMetadata(parse_remote_metadata)
def __init__( self, url, version, xml=None, parse_remote_metadata=False, timeout=30, username=None, password=None, auth=None, ): """Initialize.""" if auth: if username: auth.username = username if password: auth.password = password else: auth = Authentication(username, password) super(WebFeatureService_1_1_0, self).__init__(auth) self.url = url self.version = version self.timeout = timeout self._capabilities = None self.owscommon = OwsCommon("1.0.0") reader = WFSCapabilitiesReader(self.version, auth=self.auth) if xml: self._capabilities = reader.readString(xml) else: self._capabilities = reader.read(self.url) self._buildMetadata(parse_remote_metadata)
def __init__(self, url, version, xml=None, parse_remote_metadata=False, timeout=30, username=None, password=None): """Initialize.""" self.url = url self.version = version self.timeout = timeout self.username = username self.password = password self._capabilities = None reader = WFSCapabilitiesReader(self.version, self.username, self.password) if xml: self._capabilities = reader.readString(xml) else: self._capabilities = reader.read(self.url) self._buildMetadata(parse_remote_metadata)
def __init__(self, url, version, xml=None, parse_remote_metadata=False, timeout=30, username=None, password=None): """Initialize.""" if log.isEnabledFor(logging.DEBUG): log.debug("building WFS %s" % url) self.url = url self.version = version self.timeout = timeout self.username = username self.password = password self._capabilities = None reader = WFSCapabilitiesReader(self.version) if xml: self._capabilities = reader.readString(xml) else: self._capabilities = reader.read(self.url) self._buildMetadata(parse_remote_metadata)