Bug report #16173
QGIS WFS client not using urls from capabilities document
|Category:||Web Services clients/WFS|
|Affected QGIS version:||2.14.5||Regression?:||No|
|Operating System:||XUbuntu||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||duplicate|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||24083|
The url I add for the WFS service works fine for getting the capabilities and is a proxy, e.g. http://www.originalurl.com/wfs?...
The capabilities sent back has different urls for each request type, e.g.
<ows:Get xlink:type="simple" xlink:href="http://www.anotherurl.com/wfs?...&"/>
<ows:Post xlink:type="simple" xlink:href="http://www.anotherurl.com/wfs?...&"/>
Unfortunately these urls appear to be being ignored and the original url is still being used for all following request types (DescribeFeatureType, GetFeature,etc).
What I want is for the GetCapabilities to go through the proxy and all other requests to go direct to the server direct. This should be possible if the urls in the capabilities document are used.
WMS works correctly using the urls supplied in the capabilities (GetFeatureInfo, GetMap, etc).
I am using QGIS 2.14.5-Essen 64bit on XUbuntu 16.10.
#3 Updated by Darren Carman almost 3 years ago
Running http://environment.data.gov.uk/ds/wfs?SERVICE=WFS&INTERFACE=ENVIRONMENTWFS&VERSION=2.0.0&LC=40000000&REQUEST=GetCapabilities in a browser you can hopefully see that different urls are shown for DescribeFeatureType, GetFeature, etc.
From our logs we can see that when using QGIS these urls are not used, instead the http://environment.data.gov.uk/ds/wfs url is always used.
For WMS (which works correctly) try:
The urls returned in the capabilities document are used by QGIS for follow on calls (e.g. GetMap).
#4 Updated by Even Rouault over 2 years ago
- Resolution set to duplicate
Support for this has been added a few months ago per the following commit. I've verified this worked with the above mentionned endpoint
Author: Alessandro Pasotti <[email protected]>
Date: Wed Feb 21 15:25:21 2018 +0100
[bugfix] Support Distributed Computing Platform (DCP) for WFS
Implement the possibility to specify different endpoints
for different WFS operations.
Fixes #18099 WFS Capabilities handling problem