[Mapbender-commits] r7704 - branches/2.6/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Mar 14 04:55:43 EDT 2011


Author: verenadiewald
Date: 2011-03-14 01:55:43 -0700 (Mon, 14 Mar 2011)
New Revision: 7704

Modified:
   branches/2.6/http/classes/class_wms.php
Log:
set layer queryable correctly in function createObjFromDBNoGui

Modified: branches/2.6/http/classes/class_wms.php
===================================================================
--- branches/2.6/http/classes/class_wms.php	2011-03-13 12:52:08 UTC (rev 7703)
+++ branches/2.6/http/classes/class_wms.php	2011-03-14 08:55:43 UTC (rev 7704)
@@ -1954,7 +1954,6 @@
 				$this->objLayer[$layer_cnt]->layer_dataurl_href =$row2["layer_dataurl"];
 				$this->objLayer[$layer_cnt]->layer_metadataurl =$row2["layer_metadataurl"];
 				$this->objLayer[$layer_cnt]->layer_pos =$row2["layer_pos"];						
-				$this->objLayer[$layer_cnt]->layer_queryable =$row2["layer_pos"];
 				$this->objLayer[$layer_cnt]->layer_queryable =$row2["layer_queryable"];
 				$this->objLayer[$layer_cnt]->layer_minscale =$row2["layer_minscale"];
 				$this->objLayer[$layer_cnt]->layer_maxscale = $row2["layer_maxscale"];
@@ -2105,7 +2104,6 @@
 			$this->objLayer[$layer_cnt]->layer_dataurl_href =$row2["layer_dataurl"];
 			$this->objLayer[$layer_cnt]->layer_metadataurl =$row2["layer_metadataurl"];
 			$this->objLayer[$layer_cnt]->layer_pos =$row2["layer_pos"];						
-			$this->objLayer[$layer_cnt]->layer_queryable =$row2["layer_pos"];
 			$this->objLayer[$layer_cnt]->layer_queryable =$row2["layer_queryable"];
 			$this->objLayer[$layer_cnt]->layer_minscale =$row2["layer_minscale"];
 			$this->objLayer[$layer_cnt]->layer_maxscale = $row2["layer_maxscale"];
@@ -2118,6 +2116,7 @@
 			}
 			$this->objLayer[$layer_cnt]->gui_layer_minscale = $this->objLayer[$layer_cnt]->layer_minscale;
 			$this->objLayer[$layer_cnt]->gui_layer_maxscale = $this->objLayer[$layer_cnt]->layer_maxscale;
+			$this->objLayer[$layer_cnt]->gui_layer_queryable = $this->objLayer[$layer_cnt]->layer_queryable;
 			
 			$sql = "Select * from layer_epsg where fkey_layer_id = $1 ORDER BY fkey_layer_id";
 			$v = array($this->objLayer[$layer_cnt]->layer_uid);



More information about the Mapbender_commits mailing list