From ecd958490db15b391c2c4944dccd6d12350123b7 Mon Sep 17 00:00:00 2001 From: smohiudd Date: Fri, 8 Dec 2023 12:20:26 -0700 Subject: [PATCH 1/3] schema changes --- README.md | 5 ++--- json-schema/schema.json | 11 +++++++++-- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c038bb3..8f1f7aa 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 @@ -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..4413f2d 100644 --- a/json-schema/schema.json +++ b/json-schema/schema.json @@ -107,7 +107,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 +137,7 @@ } }, "nodata": { - "type": "number" + "type": ["number","string"] }, "colormap_name": { "type": "string" @@ -158,6 +159,12 @@ "items": { "type": "number" } + }, + "bidx":{ + "type": "array", + "items": { + "type": "number" + } } }, "additionalProperties": true From c02c90872997dd84c691836ea9f97227aa985fca Mon Sep 17 00:00:00 2001 From: smohiudd Date: Fri, 8 Dec 2023 14:25:00 -0700 Subject: [PATCH 2/3] schema include item_assets --- json-schema/schema.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/json-schema/schema.json b/json-schema/schema.json index 4413f2d..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": { From 2adbe9c8ac4ad4d291a2d9e035e04278b2ce34d8 Mon Sep 17 00:00:00 2001 From: smohiudd Date: Tue, 19 Dec 2023 10:45:29 -0700 Subject: [PATCH 3/3] update readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f1f7aa..bf52f0b 100644 --- a/README.md +++ b/README.md @@ -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 |