[QGIS Commit] r10683 - branches/Version-1_0/src/providers/wfs

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Apr 29 03:21:15 EDT 2009


Author: mhugent
Date: 2009-04-29 03:21:12 -0400 (Wed, 29 Apr 2009)
New Revision: 10683

Modified:
   branches/Version-1_0/src/providers/wfs/qgswfsprovider.cpp
Log:
wfs fix backported to 1.0

Modified: branches/Version-1_0/src/providers/wfs/qgswfsprovider.cpp
===================================================================
--- branches/Version-1_0/src/providers/wfs/qgswfsprovider.cpp	2009-04-29 05:29:04 UTC (rev 10682)
+++ branches/Version-1_0/src/providers/wfs/qgswfsprovider.cpp	2009-04-29 07:21:12 UTC (rev 10683)
@@ -502,7 +502,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