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, ) )