[Mapbender-commits] r7505 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Jan 31 16:13:15 EST 2011


Author: astrid_emde
Date: 2011-01-31 13:13:15 -0800 (Mon, 31 Jan 2011)
New Revision: 7505

Modified:
   trunk/mapbender/http/classes/class_wms.php
Log:
avoid transform when EPSG is empty see ticket http://trac.osgeo.org/mapbender/ticket/768 please check whether this change effects other things

Modified: trunk/mapbender/http/classes/class_wms.php
===================================================================
--- trunk/mapbender/http/classes/class_wms.php	2011-01-31 16:31:39 UTC (rev 7504)
+++ trunk/mapbender/http/classes/class_wms.php	2011-01-31 21:13:15 UTC (rev 7505)
@@ -1957,7 +1957,7 @@
 		$supportedSrs = $this->getSupportedSRS($this->objLayer[$i]->db_id, $confSrsArray);
 		
 		for($k=0; $k < count($supportedSrs);$k++) {
-			if(!in_array($supportedSrs[$k],$epsg)) {
+			if(!in_array($supportedSrs[$k],$epsg) && $supportedSrs[$k] != '') {
 				$n = new mb_notice("Calculation for: ".$supportedSrs[$k]);
 				$pointMin = new Mapbender_point($minx[0], $miny[0], $epsg[0]);
 				$pointMax = new Mapbender_point($maxx[0], $maxy[0], $epsg[0]);



More information about the Mapbender_commits mailing list