[mapserver-commits] r10443 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Thu Aug 5 13:55:48 EDT 2010


Author: assefa
Date: 2010-08-05 17:55:48 +0000 (Thu, 05 Aug 2010)
New Revision: 10443

Modified:
   trunk/mapserver/mapwfs.c
Log:
WFS post request with geometry column fails #3506

Modified: trunk/mapserver/mapwfs.c
===================================================================
--- trunk/mapserver/mapwfs.c	2010-08-05 11:47:57 UTC (rev 10442)
+++ trunk/mapserver/mapwfs.c	2010-08-05 17:55:48 UTC (rev 10443)
@@ -1496,7 +1496,13 @@
                               if (strcasecmp(tokens[y], lp->items[z]) == 0)
                                 break;
                           }
-                          if (z == lp->numitems)
+                          /*we need to check of the property name is the geometry name; In that case it
+                            is a valid property name*/
+                          if (msOWSLookupMetadata(&(lp->metadata), "OFG", "geometries") != NULL) 
+                            sprintf(szTmp, "%s", msOWSLookupMetadata(&(lp->metadata), "OFG", "geometries"));
+                          else
+                            sprintf(szTmp, OWS_GML_DEFAULT_GEOMETRY_NAME);
+                          if (z == lp->numitems && strcasecmp(tokens[y], szTmp) != 0)
                           {
                               msSetError(MS_WFSERR, 
                                          "Invalid PROPERTYNAME %s",  "msWFSGetFeature()", tokens[y]);
@@ -2682,7 +2688,7 @@
           wfsparams->pszRequest = "GetFeature";
         else if (strcasecmp((char *)rootnode->name, "DescribeFeatureType") == 0)
           wfsparams->pszRequest = "DescribeFeatureType";
-        
+
         if (wfsparams->pszRequest == NULL)
         {
           /* Unsupported WFS request */



More information about the mapserver-commits mailing list