svn commit: r966 - trunk/mapbender/http/classes/class_wms.php

uli at osgeo.org uli at osgeo.org
Thu Nov 30 04:27:07 EST 2006


Author: uli
Date: 2006-11-30 09:27:07+0000
New Revision: 966

Modified:
   trunk/mapbender/http/classes/class_wms.php

Log:
insert array root-epsg in layer-epsg if this array is empty
method optimize modified

Modified: trunk/mapbender/http/classes/class_wms.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/classes/class_wms.php?view=diff&rev=966&p1=trunk/mapbender/http/classes/class_wms.php&p2=trunk/mapbender/http/classes/class_wms.php&r1=965&r2=966
==============================================================================
--- trunk/mapbender/http/classes/class_wms.php	(original)
+++ trunk/mapbender/http/classes/class_wms.php	2006-11-30 09:27:07+0000
@@ -502,6 +502,9 @@
 		}
 	}
 	for($i=0;$i<count($this->objLayer);$i++){
+		if(count($this->objLayer[$i]->layer_epsg) == 0 && count($this->objLayer[0]->layer_epsg) > 0){
+			$this->objLayer[$i]->layer_epsg = $this->objLayer[0]->layer_epsg; 
+		}
 		if(!is_int($this->objLayer[$i]->layer_parent)){
 			$this->objLayer[$i]->layer_abstract = $this->wms_abstract;
 			$this->objLayer[$i]->layer_keyword = $this->wms_keyword;




More information about the Mapbender_commits mailing list