Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
xmlns:mri="http://standards.iso.org/iso/19115/-3/mri/1.0"
xmlns:gco="http://standards.iso.org/iso/19115/-3/gco/1.0"
xmlns:gex="http://standards.iso.org/iso/19115/-3/gex/1.0"
xmlns:gcx="http://standards.iso.org/iso/19115/-3/gcx/1.0"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:java-xsl-util="java:org.fao.geonet.util.XslUtil"
exclude-result-prefixes="#all">
Expand Down Expand Up @@ -142,6 +144,21 @@
else 'STAC Collection'" />
</gco:CharacterString>
</cit:title>
<xsl:if test="sci_doi">
<cit:identifier>
<mcc:MD_Identifier>
<mcc:code>
<gcx:Anchor xlink:href="{concat('https://doi.org/', sci_doi)}"><xsl:value-of select="sci_doi"/></gcx:Anchor>
</mcc:code>
<mcc:codeSpace>
<gco:CharacterString>doi.org</gco:CharacterString>
</mcc:codeSpace>
<mcc:description>
<gco:CharacterString>Digital Object Identifier (DOI)</gco:CharacterString>
</mcc:description>
</mcc:MD_Identifier>
</cit:identifier>
</xsl:if>
</cit:CI_Citation>
</mri:citation>
<mri:abstract>
Expand Down Expand Up @@ -355,6 +372,45 @@
</cit:CI_OnlineResource>
</mrd:onLine>
</xsl:for-each>
<xsl:for-each select="links[rel = 'example']">
<mrd:onLine>
<cit:CI_OnlineResource>
<cit:linkage>
<gco:CharacterString>
<xsl:value-of select="href" />
</gco:CharacterString>
</cit:linkage>
<cit:protocol>
<gco:CharacterString>WWW:LINK-1.0-http--link</gco:CharacterString>
</cit:protocol>
<cit:name>
<gco:CharacterString>
<xsl:value-of select="title" />
</gco:CharacterString>
</cit:name>
<cit:description>
<gco:CharacterString>
<xsl:value-of select="description" />
</gco:CharacterString>
</cit:description>
</cit:CI_OnlineResource>
</mrd:onLine>
</xsl:for-each>
<xsl:if test="sci_doi">
<mrd:onLine>
<cit:CI_OnlineResource>
<cit:linkage>
<gco:CharacterString><xsl:value-of select="concat('https://doi.org/', sci_doi)"/></gco:CharacterString>
</cit:linkage>
<cit:protocol>
<gco:CharacterString>DOI</gco:CharacterString>
</cit:protocol>
<cit:name>
<gco:CharacterString>Digital Object Identifier (DOI)</gco:CharacterString>
</cit:name>
</cit:CI_OnlineResource>
</mrd:onLine>
</xsl:if>
</mrd:MD_DigitalTransferOptions>
</mrd:transferOptions>
</mrd:MD_Distribution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ public void sentinel2RadiometricIndices() throws Exception {
transformAndCompare("convert/stac-to-iso19115-3.xsl", "sentinel-2-radiometric-indices-input.xml", "sentinel-2-radiometric-indices-output.xml");
}

@Test
public void biomassAnWood() throws Exception {
transformAndCompare("convert/stac-to-iso19115-3.xsl", "biomass-and-wood-input.xml", "biomass-and-wood-output.xml");
}

@Test
public void sigma0Orthorectified() throws Exception {
transformAndCompare("convert/stac-to-iso19115-3.xsl", "sigma0-orthorectified-input.xml", "sigma0-orthorectified-output.xml");
}


private void transformAndCompare(String scriptName, String inputFileName, String expectedFileName) throws Exception {
Path xslFile = getResourceInsideSchema(scriptName);
Path xmlFile = getResource("stacHarvester/" + inputFileName);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<record>
<extent>
<spatial>
<bbox>
<array>-5.859595786155143</array>
<array>40.08242510778443</array>
<array>11.175837021340103</array>
<array>51.130598314425725</array>
</bbox>
</spatial>
<temporal>
<interval>
<array>2018-01-01T00:00:00Z</array>
<array>2024-12-30T00:00:00Z</array>
</interval>
</temporal>
</extent>
<stac_version>1.1.0</stac_version>
<sci_doi>10.5281/zenodo.15489231</sci_doi>
<keywords>forest</keywords>
<keywords>biomass</keywords>
<keywords>height</keywords>
<keywords>volume</keywords>
<keywords>France</keywords>
<keywords>remote sensing</keywords>
<keywords>LIDAR</keywords>
<keywords>Sentinel</keywords>
<keywords>GEDI</keywords>
<description>FORMS-T : Height, aboveground biomass and wood volume density time-series at 10 to 30 m resolution over france (2018-2024)</description>
<sci_citation>Schwartz, M. (2025). FORMS-T: Forest Multiple Source height, wood volume, and biomass time-series (2018-2024) in France at 10 to 30 m resolution [Data set]. Zenodo. https://doi.org/10.5281/zenodo.15489231</sci_citation>
<type>Collection</type>
<title>FORMS-T</title>
<license>other</license>
<assets>
<QL>
<roles>thumbnail</roles>
<description>collection thumbnail</description>
<href>https://i.ibb.co/PvjGX01V/France-visu.png</href>
</QL>
</assets>
<contact>
<organization>Laboratoire des Sciences du Climat et de l'Environnement, LSCE/IPSL,CEA-CNRS-UVSQ, Université Paris-Saclay,Gif-sur-Yvette,91191, France</organization>
<name>Martin Schwartz</name>
<email>[email protected]</email>
</contact>
<links>
<rel>items</rel>
<href>https://stacapi-cdos.apps.okd.crocc.meso.umontpellier.fr/collections/forms-t/items</href>
<type>application/geo+json</type>
</links>
<links>
<rel>parent</rel>
<href>https://stacapi-cdos.apps.okd.crocc.meso.umontpellier.fr/</href>
<type>application/json</type>
</links>
<links>
<rel>root</rel>
<href>https://stacapi-cdos.apps.okd.crocc.meso.umontpellier.fr/</href>
<type>application/json</type>
</links>
<links>
<rel>self</rel>
<href>https://stacapi-cdos.apps.okd.crocc.meso.umontpellier.fr/collections/forms-t</href>
<type>application/json</type>
</links>
<links>
<rel>items</rel>
<href>https://api.stac.teledetection.fr/collections/forms-t/items</href>
<type>application/geo+json</type>
</links>
<links>
<rel>http://www.opengis.net/def/rel/ogc/1.0/queryables</rel>
<href>https://api.stac.teledetection.fr/collections/forms-t/queryables</href>
<type>application/schema+json</type>
<title>Queryables</title>
</links>
<links>
<rel>http://www.opengis.net/def/rel/ogc/1.0/queryables</rel>
<href>https://stacapi-cdos.apps.okd.crocc.meso.umontpellier.fr/collections/forms-t/queryables</href>
<type>application/schema+json</type>
<title>Queryables</title>
</links>
<id>forms-t</id>
<stac_extensions>https://stac-extensions.github.io/scientific/v1.0.0/schema.json</stac_extensions>
<providers>
<roles>producer</roles>
<name>Laboratoire des Sciences du Climat et de l'Environnement</name>
<url>https://www.lsce.ipsl.fr/</url>
</providers>
</record>
Loading
Loading