[Mapbender-commits] r2496 - branches/2.5/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jun 10 05:38:40 EDT 2008
Author: christoph
Date: 2008-06-10 05:38:40 -0400 (Tue, 10 Jun 2008)
New Revision: 2496
Modified:
branches/2.5/http/classes/class_gml2.php
Log:
bug fix #240
Modified: branches/2.5/http/classes/class_gml2.php
===================================================================
--- branches/2.5/http/classes/class_gml2.php 2008-06-10 09:35:31 UTC (rev 2495)
+++ branches/2.5/http/classes/class_gml2.php 2008-06-10 09:38:40 UTC (rev 2496)
@@ -486,6 +486,11 @@
$ns = $namespace['ns'];
$columnName = $namespace['value'];
+ // check if this node is a geometry node.
+ // however, even if it is a property node,
+ // it has a child node, the text node!
+ // So we might need to do something more
+ // sophisticated here...
if ($currentSibling->hasChildNodes()){
$geomNode = $currentSibling->firstChild;
$geomType = $geomNode->nodeName;
@@ -510,6 +515,9 @@
$this->geometry = new GMLMultiPolygon();
$this->geometry->parseMultiPolygon($geomNode);
break;
+ default:
+ $this->properties[$columnName] = $value;
+ break;
}
}
else {
More information about the Mapbender_commits
mailing list