Skip to content

Section 10 Remote Data fixes : timeouts on WFS and localize #160

@justb4

Description

@justb4

NOTE "ahocevar WFS" is now up again and used in OpenLayers examples, so is expected to be available at least for next workshop.

Using latest local build of Dockerfile (June 6, 2024). WFS https://ahocevar.com/geoserver/wfs? working for other examples.

See Cell 16:

from owslib.fes import PropertyIsLike
from owslib.etree import etree
wfs11 = WebFeatureService(url='https://ahocevar.com/geoserver/wfs?', version='1.1.0')

filter_ = PropertyIsLike(propertyname='NAME', literal='Bucharest', wildCard='*')
filterxml = etree.tostring(filter_.toXML()).decode('utf-8')
response = wfs11.getfeature(typename='ne:ne_10m_populated_places', filter=filterxml)
---------------------------------------------------------------------------
TimeoutError                              Traceback (most recent call last)
File /usr/local/lib/python3.10/dist-packages/urllib3/connectionpool.py:537, in HTTPConnectionPool._make_request(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)
    536 try:
--> 537     response = conn.getresponse()
    538 except (BaseSSLError, OSError) as e:
.
.

In addition: localize WFS examples from RO/Bucharest to EE/Tartu.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions