Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load_uploaded_files #106

Merged
merged 4 commits into from
Dec 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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