[Mapbender-commits] r4457 - branches/2.6/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Jul 29 11:54:51 EDT 2009
Author: mschulz
Date: 2009-07-29 11:54:51 -0400 (Wed, 29 Jul 2009)
New Revision: 4457
Modified:
branches/2.6/http/classes/class_gml_factory.php
Log:
changed to use gml:featureMember to access features because of umn mapserver namespace problems on featureTypes
Modified: branches/2.6/http/classes/class_gml_factory.php
===================================================================
--- branches/2.6/http/classes/class_gml_factory.php 2009-07-29 14:21:05 UTC (rev 4456)
+++ branches/2.6/http/classes/class_gml_factory.php 2009-07-29 15:54:51 UTC (rev 4457)
@@ -202,17 +202,13 @@
// build feature collection
$gml->featureCollection = new FeatureCollection();
- // segments of the featureCollection
- $gmlFeatureMembers = $gmlDoc->xpath("//" . $featureType->name);
-
+ // segments of the featureCollection
+ $gmlFeatureMembers = $gmlDoc->xpath("//gml:featureMember");
if (count($gmlFeatureMembers) > 0) {
foreach ($gmlFeatureMembers as $gmlFeatureMember) {
-
-// $e = new mb_exception($gmlFeatureMember->asXML());
- $featureMember_dom = dom_import_simplexml($gmlFeatureMember);
-
+ $gmlfeatureMember_dom = dom_import_simplexml($gmlFeatureMember);
$feature = new Feature();
- $this->parseFeature($featureMember_dom, $feature, $wfsConf);
+ $this->parseFeature($gmlfeatureMember_dom->firstChild, $feature, $wfsConf);
if (isset($feature->geometry)) {
$gml->featureCollection->addFeature($feature);
}
@@ -226,4 +222,4 @@
}
}
}
-?>
\ No newline at end of file
+?>
More information about the Mapbender_commits
mailing list