Skip to content

Commit

Permalink
[WFS provider] Fix discovery of geometry attribute when partially rec…
Browse files Browse the repository at this point in the history
…ognized by regular analysis of DescribeFeatureType and then handled by GMLAS based analysis
  • Loading branch information
rouault committed Jan 21, 2024
1 parent fa3aa8f commit b76dfc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/providers/wfs/qgswfsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1568,11 +1568,13 @@ bool QgsWFSProvider::readAttributesFromSchema( QDomDocument &schemaDoc,
mayTryWithGMLAS &&
GDALGetDriverByName( "GMLAS" ) )
{
QString geometryAttributeGMLAS;
QgsFields fieldsGMLAS;
Qgis::WkbType geomTypeGMLAS;
QString errorMsgGMLAS;
if ( readAttributesFromSchemaWithGMLAS( response, prefixedTypename, geometryAttribute, fieldsGMLAS, geomTypeGMLAS, geometryMaybeMissing, errorMsgGMLAS ) )
if ( readAttributesFromSchemaWithGMLAS( response, prefixedTypename, geometryAttributeGMLAS, fieldsGMLAS, geomTypeGMLAS, geometryMaybeMissing, errorMsgGMLAS ) )
{
geometryAttribute = geometryAttributeGMLAS;
fields = fieldsGMLAS;
geomType = geomTypeGMLAS;
ret = true;
Expand Down

0 comments on commit b76dfc5

Please sign in to comment.