You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loading data from a WFS 2.0 service, the list of fields is missing gml:name and gml:description. It looks like it only considers the fields explicitly provided in the DescribeFeatureType but does not include the field from the parent feature type.
<gml:description>Grey, biotite-hornblende quartz diorite to granodiorite, and brown to greenish plagioclase-phyric, hornblende-biotite quartz monzonite; fine- to medium-grained</gml:description>
<gml:identifiercodeSpace="http://142.34.2.145:8080/cgi">5e47bfe13c2bd94cb2cbb32538d98005</gml:identifier>
<gml:name>Middle Jurassic Endako Batholith - Stag Lake Plutonic Suite - Stellako Phase</gml:name>
If we check WFS DescribeFeatureType which returns the schema
just how those two files are eventually loaded is through a mind numbing maze.. the chain of imports eventually pulls them both.
AbstractFeatureType (defined in feature) is a subtype of `AbstractGMLType' (defined in gmlBase) and this is where name, description and identifier are defined.
and QGIS does not consider them..
QGIS version
3.18.1-Zürich
QGIS code revision 202f1bf
Compiled against Qt
5.11.2
Running against Qt
5.11.2
Compiled against GDAL/OGR
3.1.4
Running against GDAL/OGR
3.1.4
Compiled against GEOS
3.8.1-CAPI-1.13.3
Running against GEOS
3.8.1-CAPI-1.13.3
Compiled against SQLite
3.29.0
Running against SQLite
3.29.0
PostgreSQL Client Version
11.5
SpatiaLite Version
4.3.0
QWT Version
6.1.3
QScintilla2 Version
2.10.8
Compiled against PROJ
6.3.2
Running against PROJ
Rel. 6.3.2, May 1st, 2020
OS Version
Windows 10 (10.0)
Active python plugins
db_manager;
MetaSearch;
processing
The text was updated successfully, but these errors were encountered:
denevers
added
the
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
label
Apr 5, 2021
denevers
changed the title
WFS 2.0 ignores field inherited from parent feature type
QGIS ignores field inherited from parent feature type in WFS 2.0 services
Apr 5, 2021
For each GML type, there is also an “Override GML Attributes” checkbox. Selecting this (checking the checkbox) will cause attributes to be redefined in the application schema.
rouault
added a commit
to rouault/QGIS
that referenced
this issue
Sep 23, 2022
When loading data from a WFS 2.0 service, the list of fields is missing gml:name and gml:description. It looks like it only considers the fields explicitly provided in the DescribeFeatureType but does not include the field from the parent feature type.
eg: British Columbia Geological Survey WFS
http://apps.empr.gov.bc.ca/geoserver/cgi/ows?SERVICE=WFS
Compare to XML output
http://apps.empr.gov.bc.ca/geoserver/cgi/ows?SERVICE=WFS&REQUEST=GetFeature&VERSION=2.0.0&typeNames=cgi:CA-BC-BCGS-bedrock-geology_v01&count=1&outputFormat=text/xml; subtype=gml/3.2
(browser won't recognise as XML, so will be asked to save)
included below
Note
If we check WFS DescribeFeatureType which returns the schema
http://apps.empr.gov.bc.ca/geoserver/cgi/ows?SERVICE=WFS&REQUEST=DescribeFeatureType&VERSION=2.0.0&typeNames=cgi:CA-BC-BCGS-bedrock-geology_v01
this returns a XSD
note
this comes from this schemas
this http://apps.empr.gov.bc.ca/geoserver/schemas/gml/3.2.1/gml.xsd, by the cascade on imports will eventually get to
http://apps.empr.gov.bc.ca/geoserver/schemas/gml/3.2.1/feature.xsd
http://apps.empr.gov.bc.ca/geoserver/schemas/gml/3.2.1/gmlBase.xsd
just how those two files are eventually loaded is through a mind numbing maze.. the chain of imports eventually pulls them both.
AbstractFeatureType
(defined in feature) is a subtype of `AbstractGMLType' (defined in gmlBase) and this is where name, description and identifier are defined.and QGIS does not consider them..
QGIS version
3.18.1-Zürich
QGIS code revision
202f1bf
Compiled against Qt
5.11.2
Running against Qt
5.11.2
Compiled against GDAL/OGR
3.1.4
Running against GDAL/OGR
3.1.4
Compiled against GEOS
3.8.1-CAPI-1.13.3
Running against GEOS
3.8.1-CAPI-1.13.3
Compiled against SQLite
3.29.0
Running against SQLite
3.29.0
PostgreSQL Client Version
11.5
SpatiaLite Version
4.3.0
QWT Version
6.1.3
QScintilla2 Version
2.10.8
Compiled against PROJ
6.3.2
Running against PROJ
Rel. 6.3.2, May 1st, 2020
OS Version
Windows 10 (10.0)
Active python plugins
db_manager;
MetaSearch;
processing
The text was updated successfully, but these errors were encountered: