[OWSLib-users] WFS connection error

Tom Kralidis tomkralidis at gmail.com
Wed Sep 14 07:22:36 PDT 2016


Hi Horst:

On Wed, 14 Sep 2016, Horst Düster wrote:

> Date: Wed, 14 Sep 2016 15:48:38 +0200
> From: Horst Düster <horst.duester at sourcepole.ch>
> To: owslib-users at lists.osgeo.org
> Subject: [OWSLib-users] WFS connection error
> 
> 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.
>

What version of OWSLib are you using?  This works for me testing with
with 0.12.0.

..Tom

> All the best
> Horst
>
>


More information about the OWSLib-users mailing list