From 2d9e7c6b42ae16a96bc4a8a2a20d242e37a4b412 Mon Sep 17 00:00:00 2001 From: Matthew Foster Date: Wed, 14 Feb 2024 16:14:02 -0800 Subject: [PATCH] add spatial description to iso output --- metadata_xml/iso19115-cioos-template/main.j2 | 30 ++++++++++++++++++++ sample_records/record.yml | 2 ++ 2 files changed, 32 insertions(+) diff --git a/metadata_xml/iso19115-cioos-template/main.j2 b/metadata_xml/iso19115-cioos-template/main.j2 index 3b3d1d1..0271562 100644 --- a/metadata_xml/iso19115-cioos-template/main.j2 +++ b/metadata_xml/iso19115-cioos-template/main.j2 @@ -359,6 +359,36 @@ {% endif %} + + {% if record['spatial']['description'] %} + + + + {# EX_GeopgraphicDescription: CIOOS core mandatory for biological datasets #} + + 1 + + + + {{- record['spatial']['descriptionIdentifier'] -}} + + + ca.cioos + + + 1 + + + {{- record['spatial']['description']-}} + + + + + + + + {% endif %} + {% if record['spatial']['vertical'] %} diff --git a/sample_records/record.yml b/sample_records/record.yml index 13fcd98..f61013d 100644 --- a/sample_records/record.yml +++ b/sample_records/record.yml @@ -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: