Skip to content

Commit 9b57094

Browse files
authored
Merge pull request #1 from stac-extensions/fix/schema-changes
Schema changes
2 parents 8560d5e + 2adbe9c commit 9b57094

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
- **Title:** Rendering
44
- **Identifier:** <https://stac-extensions.github.io/render/v1.0.0/schema.json>
5-
- **Field Name Prefix:** rdr
5+
- **Field Name Prefix:** renders
66
- **Scope:** Item, Collection
77
- **Extension [Maturity Classification](https://github.com/radiantearth/stac-spec/tree/master/extensions/README.md#extension-maturity):** Proposal
88
- **Owner**: @emmanuelmathot @abarciauskas-bgse @smohiudd
@@ -39,7 +39,7 @@ The fields in the table below can be used in these parts of STAC documents:
3939
| assets | \[string] | **REQUIRED**. Array of asset keys [referencing the assets](#assets-reference) that are used to make the rendering |
4040
| title | string | Optional title of the rendering |
4141
| rescale | \[float] | 2 dimensions array of delimited Min,Max range per band. If not provided, the data will not be rescaled. |
42-
| nodata | float | Nodata value to use for the referenced assets. |
42+
| nodata | float, string | Nodata value to use for the referenced assets. |
4343
| colormap_name | string | Color map identifier that must be applied for a raster band |
4444
| colormap | object | [Color map JSON definition](https://developmentseed.org/titiler/advanced/rendering/#custom-colormaps) that must be applied for a raster band |
4545
| color_formula | string | [Color formula](https://developmentseed.org/titiler/advanced/rendering/#color-formula) that must be applied for a raster band |
@@ -113,8 +113,7 @@ by simply specifying the `url` and `assets` query parameters.
113113
| `colormap` | `colormap` | Color map JSON definition as defined in `colormap` object of the `asset` (overrides `colormap_name` if present ) |
114114
| `color_formula` | `color_formula` | Color formula as defined in `color_formula` field of the `asset` |
115115
| `resampling` | `resampling` | Resampling method to use when reprojecting the raster. |
116-
117-
Next sections describe some examples of titiler integration.
116+
| `bidx` | `bidx` | Dataset band indexes |
118117

119118
#### Shortwave Infra-red visual thermal signature example
120119

json-schema/schema.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@
5454
"anyOf": [
5555
{
5656
"$comment": "This validates the fields in Collection Assets, but does not require them.",
57-
"required": [
58-
"assets"
57+
"anyOf": [
58+
{"type": "object", "required": ["assets"]},
59+
{"type": "object", "required": ["item_assets"]}
5960
],
6061
"properties": {
6162
"renders": {
@@ -107,7 +108,8 @@
107108
{"type": "object", "required": ["color_formula"]},
108109
{"type": "object", "required": ["resampling"]},
109110
{"type": "object", "required": ["expression"]},
110-
{"type": "object", "required": ["minmax_zoom"]}
111+
{"type": "object", "required": ["minmax_zoom"]},
112+
{"type": "object", "required": ["bidx"]}
111113
]
112114
},
113115
"fields": {
@@ -136,7 +138,7 @@
136138
}
137139
},
138140
"nodata": {
139-
"type": "number"
141+
"type": ["number","string"]
140142
},
141143
"colormap_name": {
142144
"type": "string"
@@ -158,6 +160,12 @@
158160
"items": {
159161
"type": "number"
160162
}
163+
},
164+
"bidx":{
165+
"type": "array",
166+
"items": {
167+
"type": "number"
168+
}
161169
}
162170
},
163171
"additionalProperties": true

0 commit comments

Comments
 (0)