[Mapbender-commits] r8042 - branches/2.7/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Aug 2 07:59:09 EDT 2011
Author: verenadiewald
Date: 2011-08-02 04:59:09 -0700 (Tue, 02 Aug 2011)
New Revision: 8042
Modified:
branches/2.7/http/classes/class_gml_3_factory.php
Log:
check if firstChildNode is really a XML_ELEMENT_NODE, otherwise check nextSibling
Modified: branches/2.7/http/classes/class_gml_3_factory.php
===================================================================
--- branches/2.7/http/classes/class_gml_3_factory.php 2011-08-02 09:04:17 UTC (rev 8041)
+++ branches/2.7/http/classes/class_gml_3_factory.php 2011-08-02 11:59:09 UTC (rev 8042)
@@ -365,7 +365,14 @@
// So we might need to do something more
// sophisticated here...
if ($currentSibling->hasChildNodes() && $isGeomColumn){
- $geomNode = $currentSibling->firstChild;
+ $geomNode = $currentSibling->firstChild;
+ if($geomNode->nodeType != XML_ELEMENT_NODE){
+ while($geomNode = $geomNode->nextSibling){
+ if($geomNode->nodeType == XML_ELEMENT_NODE){
+ break;
+ }
+ }
+ }
$geomType = $geomNode->nodeName;
if ($geomNode->hasAttribute("srsName")) {
$srs = $geomNode->getAttribute("srsName");
More information about the Mapbender_commits
mailing list