Skip to content

Commit

Permalink
Fix #11785 - WFS failed to determine geometry column
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Feb 18, 2015
1 parent 69c58e9 commit f301cb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/wfs/qgswfsprovider.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit f301cb8

Please sign in to comment.