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/qgis@10671 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 28, 2009
1 parent df56940 commit d0d2da1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/wfs/qgswfsprovider.cpp
Original file line number Diff line number Diff line change
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 d0d2da1

Please sign in to comment.