[Mapbender-commits] r9783 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Sep 29 02:58:21 PDT 2017
Author: armin11
Date: 2017-09-29 02:58:21 -0700 (Fri, 29 Sep 2017)
New Revision: 9783
Modified:
trunk/mapbender/http/php/mod_inspireDownloadFeed.php
Log:
Extract number of hits for wfs > 2.0
Modified: trunk/mapbender/http/php/mod_inspireDownloadFeed.php
===================================================================
--- trunk/mapbender/http/php/mod_inspireDownloadFeed.php 2017-09-29 09:57:40 UTC (rev 9782)
+++ trunk/mapbender/http/php/mod_inspireDownloadFeed.php 2017-09-29 09:58:21 UTC (rev 9783)
@@ -1244,7 +1244,17 @@
catch (Exception $e) {
$e = new mb_exception($e->getMessage());
}
- $hits = $featureTypeHits->xpath('/wfs:FeatureCollection/@numberOfFeatures');
+ switch ($mapbenderMetadata[$i]->wfs_version) {
+ case "2.0.0":
+ $hits = $featureTypeHits->xpath('/wfs:FeatureCollection/@numberMatched');
+ break;
+ case "2.0.2":
+ $hits = $featureTypeHits->xpath('/wfs:FeatureCollection/@numberMatched');
+ break;
+ case "1.1.0":
+ $hits = $featureTypeHits->xpath('/wfs:FeatureCollection/@numberOfFeatures');
+ break;
+ }
$featureHits[$i] = (integer)$hits[0];
$e = new mb_notice($featureHits[$i]." hits for featuretype ".$mapbenderMetadata[$i]->featuretype_name);
//calculate further bboxes if the # of hits extents some value
More information about the Mapbender_commits
mailing list