diff --git a/openeo/rest/connection.py b/openeo/rest/connection.py index 5625ef479..1a712d391 100644 --- a/openeo/rest/connection.py +++ b/openeo/rest/connection.py @@ -77,6 +77,7 @@ ) from openeo.rest.result import SaveResult from openeo.rest.service import Service +from openeo.rest.stac_resource import StacResource from openeo.rest.udp import Parameter, RESTUserDefinedProcess from openeo.rest.userfile import UserFile from openeo.rest.vectorcube import VectorCube @@ -1131,6 +1132,10 @@ def datacube_from_process(self, process_id: str, namespace: Optional[str] = None graph = PGNode(process_id, namespace=namespace, arguments=kwargs) return DataCube(graph=graph, connection=self) + def stac_resource_from_process(self, process_id: str, namespace: Optional[str] = None, **kwargs) -> StacResource: + graph = PGNode(process_id, namespace=namespace, arguments=kwargs) + return StacResource(graph=graph, connection=self) + def datacube_from_flat_graph( self, flat_graph: dict, parameters: Optional[dict] = None ) -> Union[DataCube, SaveResult]: