[Mapbender-commits] r5301 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jan 12 10:05:58 EST 2010
Author: verenadiewald
Date: 2010-01-12 10:05:58 -0500 (Tue, 12 Jan 2010)
New Revision: 5301
Modified:
trunk/mapbender/http/classes/class_gml_3_factory.php
Log:
parse surfaceMembers, lineMembers... correctly
Modified: trunk/mapbender/http/classes/class_gml_3_factory.php
===================================================================
--- trunk/mapbender/http/classes/class_gml_3_factory.php 2010-01-08 12:51:52 UTC (rev 5300)
+++ trunk/mapbender/http/classes/class_gml_3_factory.php 2010-01-12 15:05:58 UTC (rev 5301)
@@ -152,6 +152,9 @@
$simpleXMLNode->registerXPathNamespace('gml', 'http://www.opengis.net/gml');
$allCoords = $simpleXMLNode->xpath("gml:lineStringMember/gml:LineString/gml:posList");
+ if (count($allCoords) === 0) {
+ $allCoords = $simpleXMLNode->xpath("gml:lineStringMembers/gml:LineString/gml:posList");
+ }
$cnt=0;
foreach ($allCoords as $Coords) {
@@ -180,6 +183,9 @@
$simpleXMLNode->registerXPathNamespace('gml', 'http://www.opengis.net/gml');
$allCoords = $simpleXMLNode->xpath("gml:pointMember/gml:Point/gml:pos");
+ if (count($allCoords) === 0) {
+ $allCoords = $simpleXMLNode->xpath("gml:pointMembers/gml:Point/gml:pos");
+ }
foreach ($allCoords as $Coords) {
@@ -205,6 +211,9 @@
$simpleXMLNode->registerXPathNamespace('gml', 'http://www.opengis.net/gml');
$allCoords = $simpleXMLNode->xpath("gml:curveMembers/gml:LineString/gml:posList");
+ if (count($allCoords) === 0) {
+ $allCoords = $simpleXMLNode->xpath("gml:curveMember/gml:LineString/gml:posList");
+ }
$cnt=0;
foreach ($allCoords as $Coords) {
@@ -233,6 +242,9 @@
$simpleXMLNode->registerXPathNamespace('gml', 'http://www.opengis.net/gml');
$allPolygons = $simpleXMLNode->xpath("gml:surfaceMember/gml:Polygon");
+ if (count($allPolygons) === 0) {
+ $allPolygons = $simpleXMLNode->xpath("gml:surfaceMembers/gml:Polygon");
+ }
$cnt=0;
foreach ($allPolygons as $polygon) {
More information about the Mapbender_commits
mailing list