[Mapbender-commits] r8309 - in trunk/mapbender/http: classes plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Apr 11 01:15:39 EDT 2012


Author: armin11
Date: 2012-04-10 22:15:38 -0700 (Tue, 10 Apr 2012)
New Revision: 8309

Modified:
   trunk/mapbender/http/classes/class_wms.php
   trunk/mapbender/http/plugins/mb_metadata_server.php
Log:
Less exceptions

Modified: trunk/mapbender/http/classes/class_wms.php
===================================================================
--- trunk/mapbender/http/classes/class_wms.php	2012-04-11 05:10:31 UTC (rev 8308)
+++ trunk/mapbender/http/classes/class_wms.php	2012-04-11 05:15:38 UTC (rev 8309)
@@ -3189,6 +3189,7 @@
 			#some default
 			$this->gui_wms_visible = 1;
 			$this->gui_wms_opacity = 100;
+			//the following things are not given without a special gui!!!!!
 			$this->gui_wms_epsg=$row["gui_wms_epsg"];
 			//$e = new mb_exception("gui_wms_epsg: ".$this->gui_wms_epsg); --this is not there if update of metadata is made! Problem when updateing metadata with metadata editor
 			$this->gui_wms_sldurl = $row["gui_wms_sldurl"];

Modified: trunk/mapbender/http/plugins/mb_metadata_server.php
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_server.php	2012-04-11 05:10:31 UTC (rev 8308)
+++ trunk/mapbender/http/plugins/mb_metadata_server.php	2012-04-11 05:15:38 UTC (rev 8309)
@@ -480,7 +480,7 @@
 			}
 			catch (Exception $e) {
 				$ajaxResponse->setSuccess(false);
-				$ajaxResponse->setMessage(_mb("Could not get layer with ID ".$layerId));
+				$ajaxResponse->setMessage(_mb("Could not get layer with ID ".$layerId." from wms object by reference!"));
 				$ajaxResponse->send();						
 			}
 			$columns = array(
@@ -491,7 +491,7 @@
 				"layer_inspire_category_id",
 				"layer_custom_category_id"
 			);
-
+			//extract relevant information from json and fill them into the wms object
 			foreach ($columns as $c) {
 				$value = $data->layer->$c;
 				$e = new mb_notice("plugins/mb_metadata_server.php: layer entry for ".$c.": ".$data->layer->$c);



More information about the Mapbender_commits mailing list