[Mapbender-commits] r9458 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri May 13 00:25:02 PDT 2016
Author: armin11
Date: 2016-05-13 00:25:02 -0700 (Fri, 13 May 2016)
New Revision: 9458
Modified:
trunk/mapbender/http/classes/class_metadata_new.php
Log:
Export also temporal reference for dataset metadata
Modified: trunk/mapbender/http/classes/class_metadata_new.php
===================================================================
--- trunk/mapbender/http/classes/class_metadata_new.php 2016-05-13 07:19:59 UTC (rev 9457)
+++ trunk/mapbender/http/classes/class_metadata_new.php 2016-05-13 07:25:02 UTC (rev 9458)
@@ -627,6 +627,8 @@
$this->datasetJSON->dataset->srv[$i]->iso3166 = $spatialSource;
$this->datasetJSON->dataset->srv[$i]->bbox = array($datasetMatrix[$i]['bbox']); //TODO: read out bbox from wmc $datasetMatrix[$i][''];
+ $this->datasetJSON->dataset->srv[$i]->timeBegin = date("Y-m-d",strtotime($datasetMatrix[$i]['timebegin']));
+ $this->datasetJSON->dataset->srv[$i]->timeEnd = date("Y-m-d",strtotime($datasetMatrix[$i]['timeend']));
//search for coupled resources!!!!
if ($this->resolveCoupledResources == true) {
//maybe generate uuid first to find search!!
@@ -705,7 +707,7 @@
foreach($this->datasetJSON->dataset->srv[$i]->coupledResources->featuretype[$featuretypeCount]->srv->ftype as $ftype) {
//$e = new mb_exception("classes/class_metadata_new.php: compare featuretype ids: ".$ftype->id." - ".$ft->id);
if ($ftype->id !== $ft->id) {
- unset($this->datasetJSON->dataset->srv[$i]->coupledResources->featuretype[$featuretypeCount]->srv->ftype[$cntFtype]);
+ $this->datasetJSON->dataset->srv[$i]->coupledResources->featuretype[$featuretypeCount]->srv->ftype[$cntFtype] = null;
}
$cntFtype++;
}
More information about the Mapbender_commits
mailing list