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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jul 29 03:22:32 PDT 2014


Author: armin11
Date: 2014-07-29 03:22:32 -0700 (Tue, 29 Jul 2014)
New Revision: 9007

Modified:
   trunk/mapbender/http/php/mod_inspireDownloadFeed.php
Log:
Update mimetype for INSPIRE ATOm feeds in case of WFS and WMS fascade.

Modified: trunk/mapbender/http/php/mod_inspireDownloadFeed.php
===================================================================
--- trunk/mapbender/http/php/mod_inspireDownloadFeed.php	2014-07-29 10:09:49 UTC (rev 9006)
+++ trunk/mapbender/http/php/mod_inspireDownloadFeed.php	2014-07-29 10:22:32 UTC (rev 9007)
@@ -1355,18 +1355,23 @@
 			switch ($mapbenderMetadata[$i]->origin) {
 				case "wmslayer":
 					$ressourceDataFeedEntryTitle = $ressourceTitle." - generiert aus WMS Datenquelle";
+					$resourceFormat = "image/tiff";
 				break;
 				case "dataurl":
 					$ressourceDataFeedEntryTitle = $ressourceTitle." - generiert aus WMS Capabilities dataURL Element";
+					$resourceFormat = $mapbenderMetadata[$i]->format;
 				break;
 				case "wfs":
 					$ressourceDataFeedEntryTitle = $ressourceTitle." - generiert über WFS GetFeature Aufrufe";
+					$resourceFormat = "application/gml+xml";
 				break;
 				case "metadata":
 					$ressourceDataFeedEntryTitle = $ressourceTitle." - generiert über Downloadlinks aus Metadatensatz";
+					$resourceFormat = $mapbenderMetadata[$i]->format;
 				break;
 			}
-			$feedEntryTitle->appendChild($feedDoc->createTextNode($ressourceDataFeedEntryTitle. " im CRS ".$mapbenderMetadata[$i]->metadata_ref_system." und Format ".$mapbenderMetadata[$i]->format)); //TODO: maybe add some category?	
+			
+			$feedEntryTitle->appendChild($feedDoc->createTextNode($ressourceDataFeedEntryTitle. " im CRS ".$mapbenderMetadata[$i]->metadata_ref_system." und Format ".$resourceFormat)); //TODO: maybe add some category?	
 		}
 		$feedEntry->appendChild($feedEntryTitle);
 



More information about the Mapbender_commits mailing list