Skip to content
Permalink
Browse files

Fix #11785 - WFS failed to determine geometry column

  • Loading branch information
wonder-sk committed Feb 18, 2015
1 parent 69c58e9 commit f301cb8001d028d412352dd3808fc5a4e3914862
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/wfs/qgswfsprovider.cpp
@@ -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;

0 comments on commit f301cb8

Please sign in to comment.
You can’t perform that action at this time.