[mapserver-commits] r7156 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Fri Dec 7 15:11:11 EST 2007
Author: dmorissette
Date: 2007-12-07 15:11:10 -0500 (Fri, 07 Dec 2007)
New Revision: 7156
Modified:
trunk/mapserver/HISTORY.TXT
trunk/mapserver/mapwms.c
Log:
Make STYLES options in WMS GetMap - restore 4.10 behavior (#2427)
Modified: trunk/mapserver/HISTORY.TXT
===================================================================
--- trunk/mapserver/HISTORY.TXT 2007-12-07 19:47:20 UTC (rev 7155)
+++ trunk/mapserver/HISTORY.TXT 2007-12-07 20:11:10 UTC (rev 7156)
@@ -12,6 +12,10 @@
Current Version (5.1-dev, SVN trunk):
-------------------------------------
+
+- Restored behavior of MS 4.10 and made WMS STYLES parameter optional
+ again in GetMap and GetFeatureInfo requests (#2427)
+
- Speed up forced palette rendering (#2422)
- WMS GetFeatureInfo: honour FEATURE_COUNT for any INFO_FORMAT and
Modified: trunk/mapserver/mapwms.c
===================================================================
--- trunk/mapserver/mapwms.c 2007-12-07 19:47:20 UTC (rev 7155)
+++ trunk/mapserver/mapwms.c 2007-12-07 20:11:10 UTC (rev 7156)
@@ -366,8 +366,6 @@
int formatfound = 0;
int widthfound = 0;
int heightfound = 0;
- int stylesfound = 0;
- int sldfound = 0;
char *request = NULL;
@@ -392,7 +390,6 @@
/* check if SLD is passed. If yes, check for OGR support */
if (strcasecmp(names[i], "SLD") == 0 || strcasecmp(names[i], "SLD_BODY") == 0)
{
- sldfound = 1;
if (ogrEnabled == 0)
{
msSetError(MS_WMSERR, "OGR support is not available.", "msWMSLoadGetMapParams()");
@@ -464,7 +461,6 @@
msFreeCharArray(layers, numlayers);
}
else if (strcasecmp(names[i], "STYLES") == 0) {
- stylesfound = 1;
styles = values[i];
}
@@ -883,11 +879,6 @@
return msWMSException(map, nVersion, "MissingParameterValue");
}
- if (stylesfound == 0 && sldfound == 0)
- {
- msSetError(MS_WMSERR, "Missing required parameter STYLES", "msWMSLoadGetMapParams()");
- return msWMSException(map, nVersion, "MissingParameterValue");
- }
}
return MS_SUCCESS;
More information about the mapserver-commits
mailing list