[OWSLib-users] WFS connection error

Horst Düster horst.duester at sourcepole.ch
Wed Sep 14 06:48:38 PDT 2016


Hi

I try to connect a public WFS unfortunately without success. I tried the
following steps:

>>> from owslib.wfs import WebFeatureService
>>> wfs =
WebFeatureService(url='http://wms.qgiscloud.com/hdus1/wfs_t_demo',
version='1.0.0')

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/owslib/wfs.py", line 36, in
WebFeatureService
    timeout=timeout)
  File "/usr/lib/python2.7/dist-packages/owslib/feature/wfs100.py", line
72, in __new__
    obj.__init__(url, version, xml, parse_remote_metadata, timeout)
  File "/usr/lib/python2.7/dist-packages/owslib/feature/wfs100.py", line
94, in __init__
    self._buildMetadata(parse_remote_metadata)
  File "/usr/lib/python2.7/dist-packages/owslib/feature/wfs100.py", line
104, in _buildMetadata
    self.provider=ServiceProvider(serviceelem)  
  File "/usr/lib/python2.7/dist-packages/owslib/feature/wfs100.py", line
283, in __init__
    self.keywords = extract_xml_list(self._root.find(nspath('Keywords')))
  File "/usr/lib/python2.7/dist-packages/owslib/util.py", line 540, in
extract_xml_list
    keywords = [re.split(r'[\n\r]+',f.text) for f in elements if f.text]
TypeError: 'NoneType' object is not iterable


Any hint is appreciated.

All the best
Horst


-- 
Dr. Horst Düster
Managing Director
Sourcepole AG - Linux & Open Source Solutions 
Weberstrasse 5, 8004 Zürich, Switzerland
Tel: +41 (0)44 440 77 11
Direkt: +41 (0)44 515 67 70
horst.duester at sourcepole.ch  http://www.sourcepole.ch

QGISCloud.com - Karten einfach vom Desktop ins Netz






More information about the OWSLib-users mailing list