[Mapbender-commits] r9902 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Apr 25 07:19:43 PDT 2018
Author: armin11
Date: 2018-04-25 07:19:43 -0700 (Wed, 25 Apr 2018)
New Revision: 9902
Modified:
trunk/mapbender/http/php/mod_dataISOMetadata.php
Log:
Fix iso conformity
Modified: trunk/mapbender/http/php/mod_dataISOMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_dataISOMetadata.php 2018-04-18 14:15:31 UTC (rev 9901)
+++ trunk/mapbender/http/php/mod_dataISOMetadata.php 2018-04-25 14:19:43 UTC (rev 9902)
@@ -669,9 +669,9 @@
$MD_SpatialRepresentationTypeCode=$iso19139->createElement("gmd:MD_SpatialRepresentationTypeCode");
$MD_SpatialRepresentationTypeCode->setAttribute("codeList", "http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_SpatialRepresentationTypeCode");
if (in_array($mb_metadata['format'], array("GeoTIFF"))) {
- $MD_SpatialRepresentationTypeCode->setAttribute("value", "grid");
+ $MD_SpatialRepresentationTypeCode->setAttribute("codeListValue", "grid");
} else {
- $MD_SpatialRepresentationTypeCode->setAttribute("value", "vector");
+ $MD_SpatialRepresentationTypeCode->setAttribute("codeListValue", "vector");
}
$spatialRepresentationType->appendChild($MD_SpatialRepresentationTypeCode);
@@ -1245,6 +1245,9 @@
$resourceConstraints->appendChild($MD_LegalConstraints);
$MD_DataIdentification->appendChild($resourceConstraints);
+
+ $spatialRepresentationType->appendChild($MD_SpatialRepresentationTypeCode);
+ $MD_DataIdentification->appendChild($spatialRepresentationType);
//Spatial Resolution
/* Example
<gmd:spatialResolution><gmd:MD_Resolution><gmd:distance><gco:Distance uom="m">3.0</gco:Distance></gmd:distance></gmd:MD_Resolution></gmd:spatialResolution>
More information about the Mapbender_commits
mailing list