Skip to content

Commit

Permalink
Fix a bug in the parsing of the WFS attributes definition
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@10671 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 28, 2009
1 parent 9489697 commit 78d9713
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/wfs/qgswfsprovider.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 78d9713

Please sign in to comment.