Skip to content

Commit

Permalink
Add load_http #415
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Mar 31, 2023
1 parent 19d6f02 commit 29676f2
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `date_difference`
- `filter_vector`
- `flatten_dimensions`
- `load_http`
- `unflatten_dimension`
- `vector_buffer`
- `vector_reproject`
Expand Down
53 changes: 53 additions & 0 deletions proposals/load_http.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"id": "load_http",
"summary": "Load files from the internet (HTTP)",
"description": "Loads a file from a URL (supported protocols: HTTP and HTTPS).",
"categories": [
"cubes",
"import"
],
"experimental": true,
"parameters": [
{
"name": "url",
"description": "The HTTP(S) URLs to read. Authentication details such as API keys or tokens may need to be included in the URL.",
"schema": {
"title": "URL",
"type": "string",
"format": "uri",
"subtype": "uri",
"pattern": "^https?://"
}
},
{
"name": "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. If the format is not suitable for loading the data, a `FormatUnsuitable` exception will be thrown. This parameter is *case insensitive*.",
"schema": {
"type": "string",
"subtype": "input-format"
}
},
{
"name": "options",
"description": "The file format parameters to be used to read the files. Must correspond to the parameters that the server reports as supported parameters for the chosen `format`. The parameter names and valid values usually correspond to the GDAL/OGR format options.",
"schema": {
"type": "object",
"subtype": "input-format-options"
},
"default": {},
"optional": true
}
],
"returns": {
"description": "A data cube for further processing.",
"schema": {
"type": "object",
"subtype": "datacube"
}
},
"exceptions": {
"FormatUnsuitable": {
"message": "Data can't be loaded with the requested input format."
}
}
}

0 comments on commit 29676f2

Please sign in to comment.