[Mapbender-commits] r9462 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed May 18 07:32:51 PDT 2016


Author: armin11
Date: 2016-05-18 07:32:51 -0700 (Wed, 18 May 2016)
New Revision: 9462

Modified:
   trunk/mapbender/http/php/mod_inspireDownloadFeed.php
Log:
Delete double outputformat entries before building atom feeds

Modified: trunk/mapbender/http/php/mod_inspireDownloadFeed.php
===================================================================
--- trunk/mapbender/http/php/mod_inspireDownloadFeed.php	2016-05-17 08:23:01 UTC (rev 9461)
+++ trunk/mapbender/http/php/mod_inspireDownloadFeed.php	2016-05-18 14:32:51 UTC (rev 9462)
@@ -1963,10 +1963,12 @@
 						$mapbenderMetadata[$indexMapbenderMetadata]->output_formats[] = $row['output_format'];
 						//$e = new mb_exception("php/mod_inspireDownloadFeed.php: output_format for wfs: ".$row['output_format']);
 					}
+					
 					if (count($mapbenderMetadata[$indexMapbenderMetadata]->output_formats) < 1) {
 						//set default output format to gml2 TODO - check if senseful
 						$mapbenderMetadata[$indexMapbenderMetadata]->output_formats[0] = "text/xml; subtype=gml/2.1.2";
 					}
+					$mapbenderMetadata[$indexMapbenderMetadata]->output_formats = array_unique($mapbenderMetadata[$indexMapbenderMetadata]->output_formats);
 					//get geometry field name from featuretype information out of mapbender database
 					$sql = "SELECT element_name, element_type from wfs_element WHERE fkey_featuretype_id = $1";			
 					$v = array($mapbenderMetadata[$indexMapbenderMetadata]->featuretype_id);



More information about the Mapbender_commits mailing list