[Mapbender-commits] r6720 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Aug 10 03:48:39 EDT 2010
Author: verenadiewald
Date: 2010-08-10 07:48:39 +0000 (Tue, 10 Aug 2010)
New Revision: 6720
Modified:
trunk/mapbender/http/classes/class_point.php
Log:
workaorund for correct bbox settings
Modified: trunk/mapbender/http/classes/class_point.php
===================================================================
--- trunk/mapbender/http/classes/class_point.php 2010-08-10 07:47:54 UTC (rev 6719)
+++ trunk/mapbender/http/classes/class_point.php 2010-08-10 07:48:39 UTC (rev 6720)
@@ -51,9 +51,9 @@
if (!isset($x) || !isset($y) || !isset($epsg)) {
$e = new mb_exception("Mapbender_point: constructor: some parameters are not set (set (x: ".$x.", y: ".$y.", z: ".$z.", epsg:".$epsg.")!");
}
- $this->x = $x;
- $this->y = $y;
- $this->z = $z;
+ $this->x = is_array($x)&&count($x)>0 ? $x[0] : $x;
+ $this->y = is_array($y)&&count($y)>0 ? $y[0] : $y;
+ $this->z = is_array($z)&&count($z)>0 ? $z[0] : $z;
$this->epsg = $epsg;
}
More information about the Mapbender_commits
mailing list