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/qgis@10671 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Apr 28, 2009
1 parent df56940 commit d0d2da16f9e0427aec8d0fed24a8d2a6c98b8338
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 d0d2da1

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