[mapserver-commits] r7327 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Wed Jan 30 10:19:56 EST 2008


Author: tomkralidis
Date: 2008-01-30 10:19:56 -0500 (Wed, 30 Jan 2008)
New Revision: 7327

Modified:
   trunk/mapserver/HISTORY.TXT
   trunk/mapserver/mapwfs.c
Log:
return default GML2 when invalid OUTPUTFORMAT passed (#2479)


Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT	2008-01-30 01:58:56 UTC (rev 7326)
+++ trunk/mapserver/HISTORY.TXT	2008-01-30 15:19:56 UTC (rev 7327)
@@ -13,6 +13,8 @@
 Current Version (5.1-dev, SVN trunk):
 -------------------------------------
 
+- mapwfs.c: return default GML2 when invalid OUTPUTFORMAT passed (#2479)
+
 - mapowscommon.c: add OWS Common style version negotiation (#996)
 
 - mapwcs.c: better section parameter handling for CITE (#2485)

Modified: trunk/mapserver/mapwfs.c
===================================================================
--- trunk/mapserver/mapwfs.c	2008-01-30 01:58:56 UTC (rev 7326)
+++ trunk/mapserver/mapwfs.c	2008-01-30 15:19:56 UTC (rev 7327)
@@ -1087,10 +1087,8 @@
       outputformat = OWS_GML3;
       output_schema_format = "SFE_XMLSCHEMA";
     } else {
-      msSetError(MS_WFSERR, 
-		 "Unsupported GetFeature outputFormat (%s). Only GML2 and GML3 are supported.", 
-		 "msWFSDescribeFeatureType()", paramsObj->pszOutputFormat);
-      return msWFSException(map, paramsObj->pszVersion);
+      outputformat = OWS_GML2;
+      output_schema_format = "XMLSCHEMA";
     }
   }
 



More information about the mapserver-commits mailing list