From 0b13fbc73a949bfb97d8e1a66be4f9de38986fa4 Mon Sep 17 00:00:00 2001 From: abradley60 Date: Thu, 5 Nov 2026 16:08:33 +1030 Subject: [PATCH] fix stac media type --- sar_pipeline/pipelines/isce3_rtc/metadata/stac.py | 6 +++--- sar_pipeline/pipelines/pyrosar_gamma/metadata/stac.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sar_pipeline/pipelines/isce3_rtc/metadata/stac.py b/sar_pipeline/pipelines/isce3_rtc/metadata/stac.py index c6a7a201..c6dd4222 100644 --- a/sar_pipeline/pipelines/isce3_rtc/metadata/stac.py +++ b/sar_pipeline/pipelines/isce3_rtc/metadata/stac.py @@ -703,7 +703,7 @@ def add_metadata_links( pystac.Link( rel="self", target=f"{self.base_href}/{Path(stac_filepath).name}", - media_type=pystac.media_type.STAC_JSON, + media_type=pystac.media_type.MediaType.GEOJSON, ) ) @@ -743,7 +743,7 @@ def add_collection_link( pystac.Link( rel="collection", target=stac_href, - media_type=pystac.media_type.STAC_JSON, + media_type=pystac.media_type.MediaType.JSON, ) ) @@ -1061,7 +1061,7 @@ def add_linked_static_layers_as_assets_to_stac( pystac.Link( rel="static-layers-stac-item", target=burst_static_layer_stac_url, - media_type=pystac.media_type.STAC_JSON, + media_type=pystac.media_type.MediaType.GEOJSON, ) ) diff --git a/sar_pipeline/pipelines/pyrosar_gamma/metadata/stac.py b/sar_pipeline/pipelines/pyrosar_gamma/metadata/stac.py index e635ab40..064c4d32 100644 --- a/sar_pipeline/pipelines/pyrosar_gamma/metadata/stac.py +++ b/sar_pipeline/pipelines/pyrosar_gamma/metadata/stac.py @@ -401,7 +401,7 @@ def add_metadata_links( pystac.Link( rel="self", target=f"{self.base_href}/{Path(stac_filepath).name}", - media_type=pystac.media_type.STAC_JSON, + media_type=pystac.media_type.MediaType.GEOJSON, ) ) @@ -441,7 +441,7 @@ def add_collection_link( pystac.Link( rel="collection", target=stac_href, - media_type=pystac.media_type.STAC_JSON, + media_type=pystac.media_type.MediaType.JSON, ) )