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

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Jul 3 03:53:04 PDT 2012


Author: jng
Date: 2012-07-03 03:53:04 -0700 (Tue, 03 Jul 2012)
New Revision: 6839

Modified:
   trunk/MgDev/Web/src/HttpHandler/HttpKmlGetFeatures.cpp
   trunk/MgDev/Web/src/HttpHandler/HttpKmlGetLayer.cpp
Log:
#955: KML operations cannot operate without a BBOX specified. So check that this parameter is specified.

Modified: trunk/MgDev/Web/src/HttpHandler/HttpKmlGetFeatures.cpp
===================================================================
--- trunk/MgDev/Web/src/HttpHandler/HttpKmlGetFeatures.cpp	2012-07-03 10:38:08 UTC (rev 6838)
+++ trunk/MgDev/Web/src/HttpHandler/HttpKmlGetFeatures.cpp	2012-07-03 10:53:04 UTC (rev 6839)
@@ -104,6 +104,16 @@
     // Check common parameters
     ValidateCommonParameters();
 
+    if (m_boundingBox.empty())
+    {
+        MgStringCollection arguments;
+        arguments.Add(L"BBOX");
+        arguments.Add(MgResources::BlankArgument);
+
+        throw new MgInvalidArgumentException(L"MgHttpKmlGetFeatures.Execute",
+            __LINE__, __WFILE__, &arguments, L"MgStringEmpty", NULL);
+    }
+
     STRING sessionId = m_userInfo->GetMgSessionId();
 
     // Get a resource service instance

Modified: trunk/MgDev/Web/src/HttpHandler/HttpKmlGetLayer.cpp
===================================================================
--- trunk/MgDev/Web/src/HttpHandler/HttpKmlGetLayer.cpp	2012-07-03 10:38:08 UTC (rev 6838)
+++ trunk/MgDev/Web/src/HttpHandler/HttpKmlGetLayer.cpp	2012-07-03 10:53:04 UTC (rev 6839)
@@ -89,6 +89,16 @@
     // Check common parameters
     ValidateCommonParameters();
 
+    if (m_boundingBox.empty())
+    {
+        MgStringCollection arguments;
+        arguments.Add(L"BBOX");
+        arguments.Add(MgResources::BlankArgument);
+
+        throw new MgInvalidArgumentException(L"MgHttpKmlGetFeatures.Execute",
+            __LINE__, __WFILE__, &arguments, L"MgStringEmpty", NULL);
+    }
+
     STRING sessionId = m_userInfo->GetMgSessionId();
 
     // Get a resource service instance



More information about the mapguide-commits mailing list