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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Oct 25 12:15:09 EDT 2010


Author: verenadiewald
Date: 2010-10-25 09:15:09 -0700 (Mon, 25 Oct 2010)
New Revision: 7061

Modified:
   trunk/mapbender/http/classes/class_wms.php
Log:
sprintf for values minscale and maxscale to avoid invalid integer values like "1.2+E" 

Modified: trunk/mapbender/http/classes/class_wms.php
===================================================================
--- trunk/mapbender/http/classes/class_wms.php	2010-10-22 16:14:54 UTC (rev 7060)
+++ trunk/mapbender/http/classes/class_wms.php	2010-10-25 16:15:09 UTC (rev 7061)
@@ -869,6 +869,8 @@
 					if($element[attributes][min]>1000) $min = 0; else $min = $element[attributes][min]; 	
 					$this->objLayer[$cnt_layer]->layer_minscale = round(($min * 2004.3976484406788493955738891127));
 					$this->objLayer[$cnt_layer]->layer_maxscale = round(($max * 2004.3976484406788493955738891127));
+					$this->objLayer[$cnt_layer]->layer_minscale = sprintf("%u", $this->objLayer[$cnt_layer]->layer_minscale);
+					$this->objLayer[$cnt_layer]->layer_maxscale = sprintf("%u", $this->objLayer[$cnt_layer]->layer_maxscale);
 				}
 			} 
 			else {



More information about the Mapbender_commits mailing list