Skip to content

Commit 1eba26d

Browse files
Add stac_resource_from_process. cloudinsar/s1-workflows#70
1 parent 9706528 commit 1eba26d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

openeo/rest/connection.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
)
7878
from openeo.rest.result import SaveResult
7979
from openeo.rest.service import Service
80+
from openeo.rest.stac_resource import StacResource
8081
from openeo.rest.udp import Parameter, RESTUserDefinedProcess
8182
from openeo.rest.userfile import UserFile
8283
from openeo.rest.vectorcube import VectorCube
@@ -1131,6 +1132,10 @@ def datacube_from_process(self, process_id: str, namespace: Optional[str] = None
11311132
graph = PGNode(process_id, namespace=namespace, arguments=kwargs)
11321133
return DataCube(graph=graph, connection=self)
11331134

1135+
def stac_resource_from_process(self, process_id: str, namespace: Optional[str] = None, **kwargs) -> StacResource:
1136+
graph = PGNode(process_id, namespace=namespace, arguments=kwargs)
1137+
return StacResource(graph=graph, connection=self)
1138+
11341139
def datacube_from_flat_graph(
11351140
self, flat_graph: dict, parameters: Optional[dict] = None
11361141
) -> Union[DataCube, SaveResult]:

0 commit comments

Comments
 (0)