mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Fix #11785 - WFS failed to determine geometry column
This commit is contained in:
parent
69c58e9eec
commit
f301cb8001
@ -930,7 +930,8 @@ int QgsWFSProvider::readAttributesFromSchema( QDomDocument& schemaDoc, QString&
|
||||
//is it a geometry attribute?
|
||||
//MH 090428: sometimes the <element> tags for geometry attributes have only attribute ref="gml:polygonProperty" and no name
|
||||
QRegExp gmlPT( "gml:(.*)PropertyType" );
|
||||
if ( type.indexOf( gmlPT ) == 0 || name.isEmpty() )
|
||||
// the GeometryAssociationType has been seen in #11785
|
||||
if ( type.indexOf( gmlPT ) == 0 || type == "gml:GeometryAssociationType" || name.isEmpty() )
|
||||
{
|
||||
foundGeometryAttribute = true;
|
||||
geometryAttribute = name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user