Skip to content

Commit 96f603d

Browse files
authored
improve stac support (#144)
1 parent 0b04df0 commit 96f603d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/openeo_grass_gis_driver/actinia_processing/base.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,8 @@ def from_string(name: str):
118118
return DataObject(
119119
name=layer_name,
120120
datatype=GrassDataType.STAC,
121-
mapset="PERMANENT",
122-
location="latlong_wgs84",
123-
instance=mapset)
121+
mapset=mapset,
122+
location="latlong_wgs84")
124123

125124
raise Exception(f"Unsupported object type <{datatype}>")
126125

src/openeo_grass_gis_driver/actinia_processing/load_collection_process.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def create_process_chain_entry(input_object: DataObject,
259259
"flags": "g"}
260260

261261
elif input_object.is_stac():
262-
instance_id = input_object.instance
262+
instance_id = input_object.mapset
263263
collection_id = f"stac.{instance_id}.rastercube.{input_object.name}"
264264
strds_name = (output_object.grass_name()).replace('@', '_')
265265
# Define the import process of the STAC collection
@@ -438,6 +438,10 @@ def get_process_list(node: Node):
438438
output_object = DataObject(
439439
name=create_output_name(input_object.name, node),
440440
datatype=input_object.datatype)
441+
elif input_object.is_stac():
442+
output_object = DataObject(
443+
name=create_output_name(input_object.name, node),
444+
datatype=input_object.datatype)
441445
else:
442446
output_object = input_object
443447

0 commit comments

Comments
 (0)