Skip to content

Commit

Permalink
Merge pull request #1 from stac-extensions/fix/schema-changes
Browse files Browse the repository at this point in the history
Schema changes
  • Loading branch information
smohiudd authored Dec 19, 2023
2 parents 8560d5e + 2adbe9c commit 9b57094
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- **Title:** Rendering
- **Identifier:** <https://stac-extensions.github.io/render/v1.0.0/schema.json>
- **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
Expand Down Expand Up @@ -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 |
Expand Down Expand Up @@ -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

Expand Down
16 changes: 12 additions & 4 deletions json-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -136,7 +138,7 @@
}
},
"nodata": {
"type": "number"
"type": ["number","string"]
},
"colormap_name": {
"type": "string"
Expand All @@ -158,6 +160,12 @@
"items": {
"type": "number"
}
},
"bidx":{
"type": "array",
"items": {
"type": "number"
}
}
},
"additionalProperties": true
Expand Down

0 comments on commit 9b57094

Please sign in to comment.