Skip to content

Commit

Permalink
improve stac support (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
metzm authored Apr 5, 2022
1 parent 0b04df0 commit 96f603d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/openeo_grass_gis_driver/actinia_processing/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}>")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 96f603d

Please sign in to comment.