Skip to content

Commit 38ea10d

Browse files
minor readme changes
1 parent 647b773 commit 38ea10d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ The fields in the table below can be used in these parts of STAC documents:
2828
- [ ] Assets (for both Collections and Items, incl. Item Asset Definitions in Collections)
2929
- [ ] Links
3030

31-
| Field Name | Type | Description |
32-
| ---------- | -------------------------- | ----------------------------------------------------------------------------------------- |
33-
| renders | Map<string, Render Object> | **REQUIRED**. Dictionary of rendering objects that can be viewed, each with a unique key. |
31+
| Field Name | Type | Description |
32+
| ---------- | -------------------------------------------- | ----------------------------------------------------------------------------------------- |
33+
| renders | Map<string, [Render Object](#render-object)> | **REQUIRED**. Dictionary of rendering objects that can be viewed, each with a unique key. |
3434

3535
### Render Object
3636

@@ -56,7 +56,7 @@ The assets MUST be local assets defined in the same item.
5656

5757
> \[!NOTE]
5858
> When it is intended to use assets from external items or specific bands in an asset,
59-
> it is recommended to define a [virtual assets](https://github.com/stac-extensions/virtual-assets)
59+
> it is recommended to define a [virtual asset](https://github.com/stac-extensions/virtual-assets)
6060
> and then reference its key in the `assets` field. See the [NDVI example](#normalized-difference-vegetation-index-ndvi-example).
6161
6262
## Positioning
@@ -138,7 +138,7 @@ From the [Sentinel-2 item](https://github.com/stac-extensions/virtual-assets/blo
138138
| assets | Assets keys defined in the `assets` fields | `B12,B8A,B04` |
139139
| rescale | Delimited Min,Max bounds defined in `rescale` field | `0,5000,0,7000,0,9000` |
140140

141-
URL: `https://api.cogeo.xyz/stac/crop/14.869,37.682,15.113,37.862/256x256.png?url=https://raw.githubusercontent.com/stac-extensions/raster/main/examples/item-sentinel2.json&assets=B12,B8A,B04&resampling_method=average&rescale=0,5000,0,7000,0,9000&return_mask=true`
141+
URL: [`https://api.cogeo.xyz/stac/crop/14.869,37.682,15.113,37.862/256x256.png?url=https://raw.githubusercontent.com/stac-extensions/raster/main/examples/item-sentinel2.json&assets=B12,B8A,B04&resampling_method=average&rescale=0,5000,0,7000,0,9000&return_mask=true`](https://api.cogeo.xyz/stac/crop/14.869,37.682,15.113,37.862/256x256.png?url=https://raw.githubusercontent.com/stac-extensions/raster/main/examples/item-sentinel2.json&assets=B12,B8A,B04&resampling_method=average&rescale=0,5000,0,7000,0,9000&return_mask=true)
142142

143143
**Result**: Lava thermal signature of Mount Etna eruption (February 2021)
144144

@@ -185,19 +185,19 @@ If this case, the parameters to titiler must be extracted from both the virtual
185185
| ----------------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
186186
| url | STAC Item URL | `https://raw.githubusercontent.com/stac-extensions/raster/main/examples/item-landsat8.json` |
187187
| expression | Band math formula as defined in field `vrt:algorithm` | `(B5–B4)/(B5+B4)` |
188-
| rescale | Delimited Min,Max bounds defined in `rescale` field of the `vrt:algorithm_opts` | `-1,1` |
188+
| rescale | Delimited Min,Max bounds defined in `rescale` field | `-1,1` |
189189
| colormap | Color map JSON definition as defined in `colormap_name` | `ylgn` |
190190
| resampling_method | Resampling method to use when reprojecting the raster as defined in `resampling` | `average` |
191191

192192
URL:
193193

194-
`https://api.cogeo.xyz/stac/preview.png?url=https://raw.githubusercontent.com/stac-extensions/raster/main/examples/item-landsat8.json&expression=(B5–B4)/(B5+B4)&max_size=512&width=512&resampling_method=average&rescale=-1,1&color_map=ylgn&return_mask=true`
194+
[`https://api.cogeo.xyz/stac/preview.png?url=https://raw.githubusercontent.com/stac-extensions/raster/main/examples/item-landsat8.json&expression=(B5–B4)/(B5+B4)&max_size=512&width=512&resampling_method=average&rescale=-1,1&color_map=ylgn&return_mask=true`](https://api.cogeo.xyz/stac/preview.png?url=https://raw.githubusercontent.com/stac-extensions/raster/main/examples/item-landsat8.json&expression=(B5–B4)/(B5+B4)&max_size=512&width=512&resampling_method=average&rescale=-1,1&color_map=ylgn&return_mask=true)
195195

196196
Result: Landsat Surface Reflectance Normalized Difference Vegetation Index (NDVI) path 44 row 33.
197197

198198
![sacramento](https://api.cogeo.xyz/stac/preview.png?url=https://raw.githubusercontent.com/stac-extensions/raster/main/examples/item-landsat8.json&expression=(B5–B4)/(B5+B4)&max_size=512&width=512&resampling_method=average&rescale=-1,1&color_map=ylgn&return_mask=true)
199199

200-
Obviously, the same rendering can be applied to the source assets without using the virtual asset.
200+
Obviously, the same rendering can be applied to local source assets without using the virtual asset.
201201

202202
```json
203203
"renders":{

0 commit comments

Comments
 (0)