Skip to content
Permalink
Browse files

Fix a bug in the parsing of the WFS attributes definition

git-svn-id: http://svn.osgeo.org/qgis/trunk@10671 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Apr 28, 2009
1 parent 9489697 commit 78d97132060d2022b971d9b8f3e69412a80d9692
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/providers/wfs/qgswfsprovider.cpp
@@ -505,7 +505,8 @@ int QgsWFSProvider::readAttributesFromSchema( QDomDocument& schemaDoc, QString&
QString type = attributeElement.attribute( "type" );

//is it a geometry attribute?
if ( type.startsWith( "gml:" ) && type.endsWith( "PropertyType" ) )
//MH 090428: sometimes the <element> tags for geometry attributes have only attribute ref="gml:polygonProperty" and no name
if ( (type.startsWith( "gml:" ) && type.endsWith( "PropertyType" )) || name.isEmpty() )
{
geometryAttribute = name;
}

0 comments on commit 78d9713

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