Skip to content

Commit

Permalink
Merge pull request #106 from Open-EO/issue-83
Browse files Browse the repository at this point in the history
load_uploaded_files
  • Loading branch information
m-mohr authored Dec 17, 2019
2 parents e27a460 + b243591 commit a4334b2
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `any`
- `array_find`
- `drop_dimension`
- `load_uploaded_files`
- `rename_labels`
- Added further examples

Expand Down
57 changes: 57 additions & 0 deletions load_uploaded_files.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"id": "load_uploaded_files",
"summary": "Load files from the user workspace.",
"description": "Loads one or more user-uploaded files from the local user workspace / data store and returns them as a single data cube. The files must have been stored by the authenticated user on the back-end currently connected to.",
"categories": [
"cubes",
"import"
],
"parameter_order": [
"paths",
"format",
"options"
],
"parameters": {
"paths": {
"description": "The files to read. Folders can't be specified, instead specify all files. An error is thrown if a file can't be read.",
"schema": {
"type": "array",
"subtype": "file-paths",
"items": {
"type": "string",
"subtype": "file-path"
}
},
"required": true
},
"format": {
"description": "The file format to read from. It must be one of the values that the server reports as supported input file formats, which usually correspond to the short GDAL/OGR codes. This parameter is *case insensitive*.",
"schema": {
"type": "string",
"subtype": "input-format"
},
"required": true
},
"options": {
"description": "The file format options to be used to read the files. Must correspond to the options that the server reports as supported options for the chosen `format`. The option names and valid values usually correspond to the GDAL/OGR format options.",
"schema": {
"type": "object",
"subtype": "input-format-options"
},
"default": {}
}
},
"returns": {
"description": "A data cube for further processing.",
"schema": [
{
"type": "object",
"subtype": "raster-cube"
},
{
"type": "object",
"subtype": "vector-cube"
}
]
}
}
3 changes: 3 additions & 0 deletions tests/openapi.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ var subtypes = {
'bounding-box': {type: 'object'},
'collection-id': {type: 'string'},
'epsg-code': {type: 'integer'},
'file-paths': {type: 'array'},
'file-path': {type: 'string'},
'geojson': {type: 'object'},
'input-format': {type: 'string'},
'input-format-options': {type: 'object'},
'job-id': {type: 'string'},
'kernel': {type: 'array'},
'output-format': {type: 'string'},
Expand Down

0 comments on commit a4334b2

Please sign in to comment.