[Mapbender-commits] r9379 - trunk/mapbender/owsproxy/http

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jan 19 04:12:23 PST 2016


Author: armin11
Date: 2016-01-19 04:12:23 -0800 (Tue, 19 Jan 2016)
New Revision: 9379

Modified:
   trunk/mapbender/owsproxy/http/index.php
Log:
Fix for missing numberOfFeatures attribute in some WFS 1.1.0 implementations

Modified: trunk/mapbender/owsproxy/http/index.php
===================================================================
--- trunk/mapbender/owsproxy/http/index.php	2016-01-19 12:11:24 UTC (rev 9378)
+++ trunk/mapbender/owsproxy/http/index.php	2016-01-19 12:12:23 UTC (rev 9379)
@@ -1036,18 +1036,19 @@
 			$e = new mb_notice("owsproxy/http/index.php: No version for wfs request given in url!");
 		}
 		switch ($version['version']) {
-			case "1.0.0":
+			//case "1.0.0":
+			default:
 				//get # of features from counting features
 				$numberOfFeatures = $featureCollectionXml->xpath('//wfs:FeatureCollection/gml:featureMember');
 				$numberOfFeatures = count($numberOfFeatures);
 				$e = new mb_notice("owsproxy/index.php: wfs version ".$version[1]." used");
 			break;
-			case "1.1.0":
+			/*case "1.1.0":
 				//get # of features from attribut
 				$numberOfFeatures = $featureCollectionXml->xpath('//wfs:FeatureCollection/@numberOfFeatures');
 				$numberOfFeatures = $numberOfFeatures[0];
 				$e = new mb_notice("owsproxy/index.php: wfs version ".$version[1]." used");
-			break;
+			break;*/
 		}
 		$endTime = microtime();
 		$e = new mb_notice("owsproxy/http/index.php: ".$numberOfFeatures." delivered features from wfs.");



More information about the Mapbender_commits mailing list