diff --git a/src/openeo_grass_gis_driver/actinia_processing/base.py b/src/openeo_grass_gis_driver/actinia_processing/base.py index 957fa8ea..b8130466 100644 --- a/src/openeo_grass_gis_driver/actinia_processing/base.py +++ b/src/openeo_grass_gis_driver/actinia_processing/base.py @@ -118,9 +118,8 @@ def from_string(name: str): return DataObject( name=layer_name, datatype=GrassDataType.STAC, - mapset="PERMANENT", - location="latlong_wgs84", - instance=mapset) + mapset=mapset, + location="latlong_wgs84") raise Exception(f"Unsupported object type <{datatype}>") diff --git a/src/openeo_grass_gis_driver/actinia_processing/load_collection_process.py b/src/openeo_grass_gis_driver/actinia_processing/load_collection_process.py index 90642e73..19984e3c 100644 --- a/src/openeo_grass_gis_driver/actinia_processing/load_collection_process.py +++ b/src/openeo_grass_gis_driver/actinia_processing/load_collection_process.py @@ -259,7 +259,7 @@ def create_process_chain_entry(input_object: DataObject, "flags": "g"} elif input_object.is_stac(): - instance_id = input_object.instance + instance_id = input_object.mapset collection_id = f"stac.{instance_id}.rastercube.{input_object.name}" strds_name = (output_object.grass_name()).replace('@', '_') # Define the import process of the STAC collection @@ -438,6 +438,10 @@ def get_process_list(node: Node): output_object = DataObject( name=create_output_name(input_object.name, node), datatype=input_object.datatype) + elif input_object.is_stac(): + output_object = DataObject( + name=create_output_name(input_object.name, node), + datatype=input_object.datatype) else: output_object = input_object