diff --git a/scripts/stac/imagery/collection.py b/scripts/stac/imagery/collection.py index 65fa9c0c7..dc7067a0d 100644 --- a/scripts/stac/imagery/collection.py +++ b/scripts/stac/imagery/collection.py @@ -336,7 +336,7 @@ def _description(self) -> str: Urban Aerial Photos / Rural Aerial Photos: Orthophotography within the [Region] region captured in the [Year(s)] flying season. DEM / DSM: - [Digital Surface Model / Digital Elevation Model] within the [Region] region in [year(s)]. + [Digital Surface Model / Digital Elevation Model] within the [Region] region captured in [year(s)]. Satellite Imagery / Scanned Aerial Photos: [Satellite imagery | Scanned Aerial Photos] within the [Region] region captured in [Year(s)]. @@ -358,9 +358,9 @@ def _description(self) -> str: elif self.metadata["category"] in [URBAN_AERIAL_PHOTOS, RURAL_AERIAL_PHOTOS]: desc = f"Orthophotography within the {region} region captured in the {date} flying season" elif self.metadata["category"] == DEM: - desc = f"Digital Elevation Model within the {region} region in {date}" + desc = f"Digital Elevation Model within the {region} region captured in {date}" elif self.metadata["category"] == DSM: - desc = f"Digital Surface Model within the {region} region in {date}" + desc = f"Digital Surface Model within the {region} region captured in {date}" else: raise SubtypeParameterError(self.metadata["category"]) diff --git a/scripts/stac/imagery/tests/generate_description_test.py b/scripts/stac/imagery/tests/generate_description_test.py index 5e06c7f7e..58894fbdb 100644 --- a/scripts/stac/imagery/tests/generate_description_test.py +++ b/scripts/stac/imagery/tests/generate_description_test.py @@ -46,7 +46,7 @@ def test_generate_description_elevation(metadata: Tuple[CollectionMetadata, Coll metadata_auck, _ = metadata metadata_auck["category"] = "dem" collection = ImageryCollection(metadata_auck) - description = "Digital Elevation Model within the Auckland region in 2023." + description = "Digital Elevation Model within the Auckland region captured in 2023." assert collection.stac["description"] == description @@ -57,7 +57,7 @@ def test_generate_description_elevation_geographic_description_input( metadata_auck["category"] = "dem" metadata_auck["geographic_description"] = "Central" collection = ImageryCollection(metadata_auck) - description = "Digital Elevation Model within the Auckland region in 2023." + description = "Digital Elevation Model within the Auckland region captured in 2023." assert collection.stac["description"] == description