[mapguide-commits] r5511 - sandbox/adsk/2.3r/Web/src/HttpHandler

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


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

Modified:
   sandbox/adsk/2.3r/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: sandbox/adsk/2.3r/Web/src/HttpHandler/OgcWmsServer.cpp
===================================================================
--- sandbox/adsk/2.3r/Web/src/HttpHandler/OgcWmsServer.cpp	2011-01-28 06:56:57 UTC (rev 5510)
+++ sandbox/adsk/2.3r/Web/src/HttpHandler/OgcWmsServer.cpp	2011-01-28 06:57:57 UTC (rev 5511)
@@ -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