[mapserver-commits] r7876 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Thu Aug 21 16:48:27 EDT 2008
Author: dmorissette
Date: 2008-08-21 16:48:27 -0400 (Thu, 21 Aug 2008)
New Revision: 7876
Modified:
trunk/mapserver/mapserv.c
Log:
Got rid of stray checks on service= param when mode=map is passed that led to misleading errors about specified OWS service not being compiled in (#2747)
Modified: trunk/mapserver/mapserv.c
===================================================================
--- trunk/mapserver/mapserv.c 2008-08-20 21:06:10 UTC (rev 7875)
+++ trunk/mapserver/mapserv.c 2008-08-21 20:48:27 UTC (rev 7876)
@@ -1298,31 +1298,6 @@
} /* done OGC/OWS case */
/*
- ** Try to report a meaningful message if we had an OGC request but
- ** we couldn't handle it because we don't have support compiled in.
- */
- {
- const char *service = NULL;
-
- for(i=0; i<mapserv->request->NumParams; i++) {
- if(strcasecmp(mapserv->request->ParamNames[i], "SERVICE") == 0)
- service = mapserv->request->ParamValues[i];
- }
-
- if( service != NULL
- && (strcasecmp(service,"WMS") == 0
- || strcasecmp(service,"WCS") == 0
- || strcasecmp(service,"WFS") == 0
- || strcasecmp(service,"SOS") == 0) ) {
- msSetError(MS_WEBERR,
- "SERVICE=%s requested, but that OGC web service is not enabled in this build. Please rebuild MapServer with appropriate options.",
- "mapserv() ",
- service );
- writeError();
- }
- }
-
- /*
** Do "traditional" mode processing.
*/
if (mapserv->Mode == -1)
More information about the mapserver-commits
mailing list