Skip to content

Commit

Permalink
Fixed outdated example and problems with STAC in the spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Mar 8, 2019
1 parent 002f01e commit c02c72b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 37 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Numeric openEO error codes. Replaced in responses with textual error codes. [#139](https://github.com/Open-EO/openeo-api/issues/139)
- Query parameters to replace process graph variables in `GET /process_graphs/{process_graph_id}`. [#147](https://github.com/Open-EO/openeo-api/issues/147)
- `min_parameters` and `dependencies` for parameters in process descriptions returned by `GET /processes`.
- Replaced output format properties in favor of an export process, which has resulted in in the removal of:
- Replaced output format properties in favor of a `save_result` process, which has resulted in in the removal of:
- The default output format in `GET /output_formats`. [#153](https://github.com/Open-EO/openeo-api/issues/153)
- The output format properties in `POST /result` (fka `POST /preview`), `POST /jobs`, `PATCH /jobs` and `GET /jobs/{job_id}` requests. [#153](https://github.com/Open-EO/openeo-api/issues/153)
- `gis_data_type` (not to be confused with `gis_data_types`) in the parameters of output formats in `GET /output_formats`
Expand Down
4 changes: 2 additions & 2 deletions docs/examples-poc.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ Compute time series of zonal (regional) statistics of Sentinel 2 imagery over us
}
}
},
"export1": {
"process_id": "export",
"savere1": {
"process_id": "save_result",
"arguments": {
"data": {"from_node": "aggreg1"},
"format": "JSON"
Expand Down
Binary file modified docs/img/pg-example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/processgraphs.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ The process graph representing the algorithm:
}
}
},
"export": {
"process_id": "export",
"save": {
"process_id": "save_result",
"arguments": {
"data": {"from_node": "mintime"},
"format": "GTiff"
Expand Down
41 changes: 9 additions & 32 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3710,7 +3710,7 @@
"description": "Not required, but **STRONGLY RECOMMENDED**! The name commonly used to refer to the band to make it easier to search for bands across instruments. See the \"[Common Band Names](https://github.com/radiantearth/stac-spec/tree/master/extensions/eo#common-band-names)\" for a list of accepted common names."
},
"description": {
"$ref": "#/components/schemas/description"
"$ref": "#/components/schemas/collection_band_description"
},
"gsd": {
"type": "number",
Expand All @@ -3727,32 +3727,6 @@
"full_width_half_max": {
"type": "number",
"description": "Full width at half maximum (FWHM) is a common way to describe the size of a spectral band. It is the width, in micrometers (μm), of the bandpass measured at a half of the maximum transmission. Thus, if the maximum transmission of the bandpass was 80%, the FWHM is measured as the width of the bandpass at 40% transmission."
},
"offset": {
"description": "Offset to convert band values to the actual measurement scale.",
"type": "number",
"default": 0
},
"scale": {
"description": "Scale to convert band values to the actual measurement scale.",
"type": "number",
"default": 1
},
"unit": {
"description": "The unit of measurement for the data, specified as [OGC URN](http://www.opengis.net/def/uom/).",
"type": "string",
"format": "url"
},
"nodata": {
"description": "Specific values representing no data.",
"type": "array",
"items": {
"type": "number"
}
},
"periodicity": {
"description": "Periodictity of the measurements, preferably specified using ISO 8601.",
"type": "string"
}
}
}
Expand Down Expand Up @@ -3837,9 +3811,8 @@
"description": "The name of the band.",
"type": "string"
},
"common_name": {
"description": "Description to fully explain the band, should include processing information.\n\n[CommonMark 0.28](http://commonmark.org/) syntax MAY be used for rich text representation.",
"type": "string"
"description": {
"$ref": "#/components/schemas/collection_band_description"
},
"data_type": {
"description": "Specifies the type of the data contained in the band, for example `amplitude`, `intensity`, `phase`, `angle`, `sigma0`, `gamma0`.",
Expand Down Expand Up @@ -4450,8 +4423,8 @@
}
}
},
"export": {
"process_id": "export",
"save": {
"process_id": "save_result",
"arguments": {
"data": {
"from_node": "mintime"
Expand Down Expand Up @@ -4715,6 +4688,10 @@
"description": "Detailed multi-line description to fully explain the collection.\n\n[CommonMark 0.28](http://commonmark.org/) syntax MAY be used for rich text representation.",
"type": "string"
},
"collection_band_description": {
"description": "Description to fully explain the band, should include processing information.\n\n[CommonMark 0.28](http://commonmark.org/) syntax MAY be used for rich text representation.",
"type": "string"
},
"service_type": {
"description": "Definintion of the service type to access result data. All available service types can be retrieved via `GET /service_types`. Service types MUST be accepted *case insensitive*.",
"type": "string",
Expand Down

0 comments on commit c02c72b

Please sign in to comment.