After switching from 2.14.1 to 2.16.1 adding layers from a certain WFS results in an error, example is with version 1.0.0 forced:
Layer is not valid: The layer srsname='EPSG:28992' typename='app:Bouwvlak' url='http://afnemers.ruimtelijkeplannen.nl/afnemers2012/services?' version='1.0.0' table="" sql= is not a valid layer and can not be added to the map
QGIS WFS log:
Analysis of DescribeFeatureType response failed for url srsname='EPSG:28992' typename='app:Bouwvlak' url='http://afnemers.ruimtelijkeplannen.nl/afnemers2012/services?' version='1.0.0' table="" sql=: Cannot find element 'Bouwvlak'
I guess the problem is in parsing the DescribeFeatureType response, but I do find the element 'Bouwvlak':
...
<element name="Bouwvlak" substitutionGroup="gml:_Feature">
<complexType>
<complexContent>
<extension base="gml:AbstractFeatureType">
<sequence>
<element name="fid" type="integer"/>
<element name="bestemmingsvlak" minOccurs="0" type="string"/>
<element name="historisch" minOccurs="0" type="boolean"/>
<element name="identificatie" minOccurs="0" type="string"/>
<element name="naam" minOccurs="0" type="string"/>
<element name="plangebied" minOccurs="0" type="string"/>
<element name="planstatus" minOccurs="0" type="string"/>
<element name="typePlan" minOccurs="0" type="string"/>
<element name="versieIMRO" minOccurs="0" type="string"/>
<element name="verwijzingNaarObjectgerichteTekst" minOccurs="0" type="string"/>
<element name="geometrie" minOccurs="0" type="gml:GeometryPropertyType"/>
<element name="dossierID" minOccurs="0" type="string"/>
<element name="dossierStatus" minOccurs="0" type="string"/>
<element name="datum" minOccurs="0" type="string"/>
<element name="verwijzingNaarExternPlan" minOccurs="0" type="string"/>
</sequence>
</extension>
</complexContent>
</complexType>
</element>
...
What I tried:
- loading the features with FME - works
- manual request in browser - works
- force version to 1.0 / 1.1 / 2.0 in QGIS - no luck
- ignore axis orientation in QGIS - no luck
- Using Wireshark I checked the differences in requests from 2.14.1 and 2.16.1:
2.14.1 requests:
GetCapabilities
DescribeFeatureType
GetFeature (1)
GetFeature (all)
GetCapabilities
2.16.1 request
GetCapabilities
DescribeFeatureType
No differences up to this step, so now I am stuck. Switching back to 2.14 works but I prefer using 2.16.
Can someone tell me this is a bug or a problem in the service?