[Mapbender-commits] r2457 - branches/2.5/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri May 16 04:29:57 EDT 2008
Author: christoph
Date: 2008-05-16 04:29:57 -0400 (Fri, 16 May 2008)
New Revision: 2457
Modified:
branches/2.5/http/classes/class_gml2.php
Log:
removed if condition (comparison to hard wired "the_geom")
Modified: branches/2.5/http/classes/class_gml2.php
===================================================================
--- branches/2.5/http/classes/class_gml2.php 2008-05-15 19:45:18 UTC (rev 2456)
+++ branches/2.5/http/classes/class_gml2.php 2008-05-16 08:29:57 UTC (rev 2457)
@@ -443,7 +443,7 @@
$ns = $namespace['ns'];
$columnName = $namespace['value'];
- if ($name==$ns.":the_geom"){
+ if ($currentSibling->hasChildNodes()){
$geomNode = $currentSibling->firstChild;
$geomType = $geomNode->nodeName;
// echo "geomtype: " . $geomType . "<br>";
@@ -472,8 +472,9 @@
// $this->properties["Mapbender:icon"] = "../img/sy_star.png";
break;
}
- } else {
- $this->properties[$columnName] = $value;
+ }
+ else {
+ $this->properties[$columnName] = $value;
}
$currentSibling = $currentSibling->nextSibling;
More information about the Mapbender_commits
mailing list