-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STAC, Collection and Workspace handling in openEO (#485)
* Add `export_collection`, `export_workspace`, `stac_update`; `save_results` returns the STAC resource instead of boolean `true` Open-EO/openeo-api#376 * Update stac_update/modify * Added details about STAC support. * Update meta/implementation.md Co-authored-by: Matthias Mohr <m.mohr@uni-muenster.de> --------- Co-authored-by: Michele Claus <31700619+clausmichele@users.noreply.github.com>
- Loading branch information
1 parent
9532cb1
commit 3744511
Showing
7 changed files
with
191 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"id": "export_collection", | ||
"summary": "Export data to an openEO collection", | ||
"description": "Exports the given processing results made available through a STAC resource (e.g., a STAC Collection or Item) to the given openEO collection. The STAC resource itself is exported with all STAC resources and assets underneath.", | ||
"categories": [ | ||
"export", | ||
"stac" | ||
], | ||
"experimental": true, | ||
"parameters": [ | ||
{ | ||
"name": "data", | ||
"description": "The data to export to the openEO collection.", | ||
"schema": { | ||
"type": "object", | ||
"subtype": "stac" | ||
} | ||
}, | ||
{ | ||
"name": "collection", | ||
"description": "The identifier of the collection to export to. If the collection **exists**, the data will be added to the collection. If the collection **does not exist** yet, it will be created based on the given STAC metadata.", | ||
"schema": [ | ||
{ | ||
"title": "New Collection", | ||
"type": "string", | ||
"pattern": "^[A-Za-z0-9_\\-\\.~/]+$" | ||
}, | ||
{ | ||
"title": "Existing Collection", | ||
"type": "string", | ||
"subtype": "collection-id", | ||
"pattern": "^[A-Za-z0-9_\\-\\.~/]+$" | ||
} | ||
] | ||
} | ||
], | ||
"returns": { | ||
"description": "Returns the collection identifier.", | ||
"schema": { | ||
"type": "string", | ||
"subtype": "collection-id", | ||
"pattern": "^[A-Za-z0-9_\\-\\.~/]+$" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"id": "export_workspace", | ||
"summary": "Export data to a cloud user workspace", | ||
"description": "Exports the given processing results made available through a STAC resource (e.g., a STAC Collection) to the given user workspace. The STAC resource itself is exported with all STAC resources and assets underneath.", | ||
"categories": [ | ||
"export", | ||
"stac" | ||
], | ||
"experimental": true, | ||
"parameters": [ | ||
{ | ||
"name": "data", | ||
"description": "The data to export to the user workspace as a STAC resource.", | ||
"schema": { | ||
"type": "object", | ||
"subtype": "stac" | ||
} | ||
}, | ||
{ | ||
"name": "workspace", | ||
"description": "The identifier of the workspace to export to.", | ||
"schema": { | ||
"type": "string", | ||
"pattern": "^[\\w\\-\\.~]+$", | ||
"subtype": "workspace-id" | ||
} | ||
}, | ||
{ | ||
"name": "merge", | ||
"description": "Provides a cloud-specific path identifier to a STAC resource to merge the given STAC resource into. If not provided, the STAC resource is kept separate from any other STAC resources in the workspace.", | ||
"schema": { | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"optional": true, | ||
"default": null | ||
} | ||
], | ||
"returns": { | ||
"description": "Returns the potentially updated STAC resource.", | ||
"schema": { | ||
"type": "object", | ||
"subtype": "stac" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"id": "stac_modify", | ||
"summary": "Updates an existing STAC resource", | ||
"description": "Modifies the given STAC resource (e.g., a STAC Collection or Item) based on the given changeset.", | ||
"categories": [ | ||
"stac" | ||
], | ||
"experimental": true, | ||
"parameters": [ | ||
{ | ||
"name": "data", | ||
"description": "The existing STAC resource.", | ||
"schema": { | ||
"type": "object", | ||
"subtype": "stac" | ||
} | ||
}, | ||
{ | ||
"name": "changes", | ||
"description": "A potentially incomplete STAC resource that should be merged with the existing STAC resource. It follows the [RFC 7386: JSON Merge Patch](https://www.rfc-editor.org/rfc/rfc7386.html) specification.", | ||
"schema": { | ||
"type": "object" | ||
} | ||
} | ||
], | ||
"returns": { | ||
"description": "Returns the modified STAC resource.", | ||
"schema": { | ||
"type": "object", | ||
"subtype": "stac" | ||
} | ||
}, | ||
"links": [ | ||
{ | ||
"href": "https://www.rfc-editor.org/rfc/rfc7386.html", | ||
"title": "RFC 7386: JSON Merge Patch", | ||
"type": "text/html", | ||
"rel": "about" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters