From cd199d370caff390446ab903f76f445e9e56da1b Mon Sep 17 00:00:00 2001 From: Stefaan Lippens Date: Mon, 18 Nov 2024 10:31:19 +0100 Subject: [PATCH] algorithm catalog: OGC records (type Feature) require a "geometry" property refs: https://github.com/ESA-APEx/apex_algorithms/issues/17 https://github.com/ESA-EarthCODE/EarthCODE/issues/5 https://github.com/eu-cdse/openeo-cdse-infra/issues/302 --- algorithm_catalog/bap_composite.json | 1 + algorithm_catalog/eurac_pv_farm_detection.json | 1 + algorithm_catalog/max_ndvi_composite.json | 1 + algorithm_catalog/sentinel1_stats.json | 1 + algorithm_catalog/worldcereal_inference.json | 1 + qa/unittests/tests/test_algorithm_catalog.py | 2 ++ 6 files changed, 7 insertions(+) diff --git a/algorithm_catalog/bap_composite.json b/algorithm_catalog/bap_composite.json index 1e741e5..18eab03 100644 --- a/algorithm_catalog/bap_composite.json +++ b/algorithm_catalog/bap_composite.json @@ -4,6 +4,7 @@ "conformsTo": [ "http://www.opengis.net/spec/ogcapi-records-1/1.0/req/record-core" ], + "geometry": null, "properties": { "created": "2024-10-09T00:00:00Z", "updated": "2024-10-09T00:00:00Z", diff --git a/algorithm_catalog/eurac_pv_farm_detection.json b/algorithm_catalog/eurac_pv_farm_detection.json index ae7928a..4db43f4 100644 --- a/algorithm_catalog/eurac_pv_farm_detection.json +++ b/algorithm_catalog/eurac_pv_farm_detection.json @@ -4,6 +4,7 @@ "conformsTo": [ "http://www.opengis.net/spec/ogcapi-records-1/1.0/req/record-core" ], + "geometry": null, "properties": { "created": "2024-10-16T00:00:00Z", "updated": "2024-10-16T00:00:00Z", diff --git a/algorithm_catalog/max_ndvi_composite.json b/algorithm_catalog/max_ndvi_composite.json index 5655c32..ad1f188 100644 --- a/algorithm_catalog/max_ndvi_composite.json +++ b/algorithm_catalog/max_ndvi_composite.json @@ -4,6 +4,7 @@ "conformsTo": [ "http://www.opengis.net/spec/ogcapi-records-1/1.0/req/record-core" ], + "geometry": null, "properties": { "created": "2024-09-06T00:00:00Z", "updated": "2024-09-06T00:00:00Z", diff --git a/algorithm_catalog/sentinel1_stats.json b/algorithm_catalog/sentinel1_stats.json index e40ab2d..8831a26 100644 --- a/algorithm_catalog/sentinel1_stats.json +++ b/algorithm_catalog/sentinel1_stats.json @@ -4,6 +4,7 @@ "conformsTo": [ "http://www.opengis.net/spec/ogcapi-records-1/1.0/req/record-core" ], + "geometry": null, "properties": { "created": "2024-10-03T00:00:00Z", "updated": "2024-10-03T00:00:00Z", diff --git a/algorithm_catalog/worldcereal_inference.json b/algorithm_catalog/worldcereal_inference.json index 415b1bf..6e72bdf 100644 --- a/algorithm_catalog/worldcereal_inference.json +++ b/algorithm_catalog/worldcereal_inference.json @@ -4,6 +4,7 @@ "conformsTo": [ "http://www.opengis.net/spec/ogcapi-records-1/1.0/req/record-core" ], + "geometry": null, "properties": { "created": "2024-05-17T00:00:00Z", "updated": "2024-05-17T00:00:00Z", diff --git a/qa/unittests/tests/test_algorithm_catalog.py b/qa/unittests/tests/test_algorithm_catalog.py index 0b4c42f..72649db 100644 --- a/qa/unittests/tests/test_algorithm_catalog.py +++ b/qa/unittests/tests/test_algorithm_catalog.py @@ -18,6 +18,8 @@ def test_lint_algorithm_catalog_json_file(path): in data["conformsTo"] ) + assert "geometry" in data + assert data["properties"]["type"] == "apex_algorithm" assert "openeo-process" in {k["rel"] for k in data["links"]}