[QGIS Commit] r10671 - trunk/qgis/src/providers/wfs
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Tue Apr 28 16:16:00 EDT 2009
Author: mhugent
Date: 2009-04-28 16:16:00 -0400 (Tue, 28 Apr 2009)
New Revision: 10671
Modified:
trunk/qgis/src/providers/wfs/qgswfsprovider.cpp
Log:
Fix a bug in the parsing of the WFS attributes definition
Modified: trunk/qgis/src/providers/wfs/qgswfsprovider.cpp
===================================================================
--- trunk/qgis/src/providers/wfs/qgswfsprovider.cpp 2009-04-28 08:17:19 UTC (rev 10670)
+++ trunk/qgis/src/providers/wfs/qgswfsprovider.cpp 2009-04-28 20:16:00 UTC (rev 10671)
@@ -505,7 +505,8 @@
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;
}
More information about the QGIS-commit
mailing list