[mapguide-commits] r5510 - trunk/MgDev/Web/src/HttpHandler

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Jan 28 01:56:57 EST 2011


Author: liuar
Date: 2011-01-27 22:56:57 -0800 (Thu, 27 Jan 2011)
New Revision: 5510

Modified:
   trunk/MgDev/Web/src/HttpHandler/OgcWmsServer.cpp
Log:
Gaia cannot consume the WMS v1.0.0 published by MapGuide.

- Because MapGuide will check the Service=WMS parameter for WMS request which is an optional parameter for WMS 1.0.0, so I ignore the parameter checking for WMS 1.0.0.

Modified: trunk/MgDev/Web/src/HttpHandler/OgcWmsServer.cpp
===================================================================
--- trunk/MgDev/Web/src/HttpHandler/OgcWmsServer.cpp	2011-01-28 02:13:20 UTC (rev 5509)
+++ trunk/MgDev/Web/src/HttpHandler/OgcWmsServer.cpp	2011-01-28 06:56:57 UTC (rev 5510)
@@ -333,10 +333,15 @@
     CPSZ pService = RequestParameter(kpszQueryStringService);
     if(pService == NULL || SZ_NEI(pService,kpszQueryValueWms))
     {
-        // TODO: verify that kpszOperationNotSupported is the right one to send back.
-        ServiceExceptionReportResponse(MgOgcWmsException(MgOgcWmsException::kpszOperationNotSupported,
-                                                         kpszExceptionMessageMissingServiceWms));
-        bValid = false;
+        // SERVICE=WMS is an optional parameter for version 1.0.0
+        STRING version = GetRequestVersion();
+        if(version != _("1.0.0"))
+        {
+            // TODO: verify that kpszOperationNotSupported is the right one to send back.
+            ServiceExceptionReportResponse(MgOgcWmsException(MgOgcWmsException::kpszOperationNotSupported,
+                                                             kpszExceptionMessageMissingServiceWms));
+            bValid = false;
+        }
     }
 
     return bValid;



More information about the mapguide-commits mailing list