Handle WFS version mismatch#1039
Conversation
|
Nice work - thanks @JakobMiksch ! Unless @tomkralidis has any further comments I'll merge in a day or so. |
|
Just to say that the WFS version negotiation rules do allow the server to return alternative versions: But it is essentially a client decision how to deal with alternative versions - e.g. whether to accept it, ask for an alternative or cease communicating (as is the case in this PR). |
|
Thanks for the details @domlowe. The warning is an improvement on simply failing when parsing using the incorrect class. |
It would raise an exception as well. I have not handled this case. |
If users rely on the current functionality, we could hide the new check behind a new opening argument, that is wfs = WebFeatureService(
url="https://www.geoproxy.geoportal-th.de/geoproxy/services/STRNETZ_wfs",
version="1.0.0",
strict_version=False # <-- NEW OPTIONAL ARGUMENT
) |
CapabilitiesErrorwill be raised