diff --git a/README.md b/README.md index c038bb3..bf52f0b 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ - **Title:** Rendering - **Identifier:** -- **Field Name Prefix:** rdr +- **Field Name Prefix:** renders - **Scope:** Item, Collection - **Extension [Maturity Classification](https://github.com/radiantearth/stac-spec/tree/master/extensions/README.md#extension-maturity):** Proposal - **Owner**: @emmanuelmathot @abarciauskas-bgse @smohiudd @@ -39,7 +39,7 @@ The fields in the table below can be used in these parts of STAC documents: | assets | \[string] | **REQUIRED**. Array of asset keys [referencing the assets](#assets-reference) that are used to make the rendering | | title | string | Optional title of the rendering | | rescale | \[float] | 2 dimensions array of delimited Min,Max range per band. If not provided, the data will not be rescaled. | -| nodata | float | Nodata value to use for the referenced assets. | +| nodata | float, string | Nodata value to use for the referenced assets. | | colormap_name | string | Color map identifier that must be applied for a raster band | | colormap | object | [Color map JSON definition](https://developmentseed.org/titiler/advanced/rendering/#custom-colormaps) that must be applied for a raster band | | 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. | `colormap` | `colormap` | Color map JSON definition as defined in `colormap` object of the `asset` (overrides `colormap_name` if present ) | | `color_formula` | `color_formula` | Color formula as defined in `color_formula` field of the `asset` | | `resampling` | `resampling` | Resampling method to use when reprojecting the raster. | - -Next sections describe some examples of titiler integration. +| `bidx` | `bidx` | Dataset band indexes | #### Shortwave Infra-red visual thermal signature example diff --git a/json-schema/schema.json b/json-schema/schema.json index ccaa074..20e0cab 100644 --- a/json-schema/schema.json +++ b/json-schema/schema.json @@ -54,8 +54,9 @@ "anyOf": [ { "$comment": "This validates the fields in Collection Assets, but does not require them.", - "required": [ - "assets" + "anyOf": [ + {"type": "object", "required": ["assets"]}, + {"type": "object", "required": ["item_assets"]} ], "properties": { "renders": { @@ -107,7 +108,8 @@ {"type": "object", "required": ["color_formula"]}, {"type": "object", "required": ["resampling"]}, {"type": "object", "required": ["expression"]}, - {"type": "object", "required": ["minmax_zoom"]} + {"type": "object", "required": ["minmax_zoom"]}, + {"type": "object", "required": ["bidx"]} ] }, "fields": { @@ -136,7 +138,7 @@ } }, "nodata": { - "type": "number" + "type": ["number","string"] }, "colormap_name": { "type": "string" @@ -158,6 +160,12 @@ "items": { "type": "number" } + }, + "bidx":{ + "type": "array", + "items": { + "type": "number" + } } }, "additionalProperties": true