[Mapbender-commits] r1683 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Sep 26 04:27:02 EDT 2007
Author: christoph
Date: 2007-09-26 04:27:02 -0400 (Wed, 26 Sep 2007)
New Revision: 1683
Modified:
trunk/mapbender/http/classes/class_gml2.php
Log:
bug fix
http://trac.osgeo.org/mapbender/ticket/103
Modified: trunk/mapbender/http/classes/class_gml2.php
===================================================================
--- trunk/mapbender/http/classes/class_gml2.php 2007-09-26 08:13:07 UTC (rev 1682)
+++ trunk/mapbender/http/classes/class_gml2.php 2007-09-26 08:27:02 UTC (rev 1683)
@@ -71,7 +71,7 @@
}
if ($boundedBy) {
if(mb_strtoupper($this->sepNameSpace($element[tag])) == mb_strtoupper("coordinates")){
- $this->bbox = explode(",", preg_replace(",,","",preg_replace(" ",",",trim($element[value]))));
+ $this->bbox = explode(",", preg_replace("/,,/","",preg_replace("/ /",",",trim($element[value]))));
$boundedBy=false;
}
}
@@ -94,14 +94,14 @@
}
if($geom == true){
if (mb_strtoupper($this->sepNameSpace($element[tag])) == mb_strtoupper("coordinates")) {
- $this->geometry[$this->member][$cnt_geom] = preg_replace(",,","",preg_replace(" ",",",trim($element[value])));
+ $this->geometry[$this->member][$cnt_geom] = preg_replace("/,,/","",preg_replace("/ /",",",trim($element[value])));
$coordinates = true;
// XXX: Increment counter to get all geometries of a feature member,
// comment it out to only show first geometry of featuremember
$cnt_geom++;
}
else if (!$coordinates && trim($element[value])) {
- $coords = preg_replace(",,","",preg_replace(" ",",",trim($element[value])));
+ $coords = preg_replace("/,,/","",preg_replace("/ /",",",trim($element[value])));
$tmp_array = explode(",", $coords);
if (count($tmp_array > 1)) {
$this->geometry[$this->member][$cnt_geom] = $coords;
More information about the Mapbender_commits
mailing list