Skip to content

Commit

Permalink
add spatial description to iso output
Browse files Browse the repository at this point in the history
  • Loading branch information
fostermh committed Feb 15, 2024
1 parent 97d3a1f commit 2d9e7c6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions metadata_xml/iso19115-cioos-template/main.j2
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,36 @@
</gex:EX_Extent>
</mri:extent>
{% endif %}

{% if record['spatial']['description'] %}
<mri:extent>
<gex:EX_Extent>
<gex:geographicElement>
{# EX_GeopgraphicDescription: CIOOS core mandatory for biological datasets #}
<gex:EX_GeopgraphicDescription>
<gex:extentTypeCode>1</gex:extentTypeCode>
<gex:geographicIdentifier>
<mcc:MD_Identifier>
<mcc:code>
<gco:CharacterString>{{- record['spatial']['descriptionIdentifier'] -}}</gco:CharacterString>
</mcc:code>
<mcc:codeSpace>
<gco:CharacterString>ca.cioos</gco:CharacterString>
</mcc:codeSpace>
<mcc:version>
<gco:CharacterString>1</gco:CharacterString>
</mcc:version>
<mcc:description>
<gco:CharacterString>{{- record['spatial']['description']-}}</gco:CharacterString>
</mcc:description>
</mcc:MD_Identifier>
</gex:geographicIdentifier>
</gex:EX_GeopgraphicDescription>
</gex:geographicElement>
</gex:EX_Extent>
</mri:extent>
{% endif %}

{% if record['spatial']['vertical'] %}
<mri:extent>
<gex:EX_Extent>
Expand Down
2 changes: 2 additions & 0 deletions sample_records/record.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ metadata:
spatial:
bbox: [-141, 42, -52, 84]
polygon: polygon_data
description: description of the spatial extent or study area of the dataset
descriptionIdentifier: A2345-FS323-DG434-345DG
vertical: [0, 10]
vertical_positive: down
identification:
Expand Down

0 comments on commit 2d9e7c6

Please sign in to comment.