Skip to content

Commit 9f98949

Browse files
added resampling
1 parent 82d602a commit 9f98949

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

README.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,13 @@ The fields in the table below can be used in these parts of STAC documents:
2626
- [x] Assets (for both Collections and Items, incl. Item Asset Definitions in Collections)
2727
- [ ] Links
2828

29-
| Field Name | Type | Description |
30-
| ----------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------- |
31-
| rdr:colormap_name | string | Color map identifier that must be applied for a raster band |
32-
| rdr:colormap | object | [Color map JSON definition](https://developmentseed.org/titiler/advanced/rendering/#custom-colormaps) that must be applied for a raster band |
33-
| rdr:color_formula | string | [Color formula](https://developmentseed.org/titiler/advanced/rendering/#color-formula) that must be applied for a raster band |
34-
| rdr:minmax_zoom | \[int] | Zoom levels range applicable for the visualization |
29+
| Field Name | Type | Description |
30+
| ----------------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
31+
| rdr:colormap_name | string | Color map identifier that must be applied for a raster band |
32+
| rdr:colormap | object | [Color map JSON definition](https://developmentseed.org/titiler/advanced/rendering/#custom-colormaps) that must be applied for a raster band |
33+
| rdr:color_formula | string | [Color formula](https://developmentseed.org/titiler/advanced/rendering/#color-formula) that must be applied for a raster band |
34+
| rdr:resampling | string | Resampling algorithm to apply to the virtual asset. See [GDAL resampling algorithm](https://gdal.org/programs/gdalwarp.html#cmdoption-gdalwarp-r) for some examples. |
35+
| rdr:minmax_zoom | \[int] | Zoom levels range applicable for the visualization |
3536

3637
## Dynamic tile servers integration
3738

@@ -113,17 +114,19 @@ From the [Landsat-8 example](examples/item-landsat8.json) \[[article](https://ww
113114
"expression": "(B05–B04)/(B05+B04)"
114115
},
115116
"vrt:rescale": [[-1,1]],
116-
"rdr:colormap_name": "ylgn"
117+
"rdr:colormap_name": "ylgn",
118+
"rdr:resampling": "average"
117119
}
118120
}
119121
```
120122

121-
| Query key | value | Example value |
122-
| ---------- | ----------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
123-
| url | STAC Item URL | `https://raw.githubusercontent.com/stac-extensions/raster/main/examples/item-landsat8.json` |
124-
| rescale | Delimited Min,Max bounds defined in `vrt:rescale` field | `-1,1` |
125-
| expression | Band math formula as defined in field `vrt:algorithm` | `(B5–B4)/(B5+B4)` |
126-
| colormap | Color map JSON definition as defined in `rdr:colormap_name` | `ylgn` |
123+
| Query key | value | Example value |
124+
| ----------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------- |
125+
| url | STAC Item URL | `https://raw.githubusercontent.com/stac-extensions/raster/main/examples/item-landsat8.json` |
126+
| rescale | Delimited Min,Max bounds defined in `vrt:rescale` field | `-1,1` |
127+
| expression | Band math formula as defined in field `vrt:algorithm` | `(B5–B4)/(B5+B4)` |
128+
| colormap | Color map JSON definition as defined in `rdr:colormap_name` | `ylgn` |
129+
| resampling_method | Resampling method to use when reprojecting the raster as defined in `rdr:resampling` | `average` |
127130

128131
URL:
129132

0 commit comments

Comments
 (0)