@@ -120,13 +120,15 @@ by simply specifying the `url` and `assets` query parameters.
120120From the [ Sentinel-2 item] ( https://github.com/stac-extensions/virtual-assets/blob/main/examples/item-sentinel2.json ) :
121121
122122``` json
123- "renders" :{
124- "sir" :
125- {
126- "title" : " Shortwave Infra-red" ,
127- "assets" : [ " swir22" , " nir2" , " red" ],
128- "rescale" : [[0 ,5000 ],[0 ,7000 ],[0 ,9000 ]],
129- "resampling" : " nearest"
123+ "properties" :{
124+ "renders" :{
125+ "sir" :
126+ {
127+ "title" : " Shortwave Infra-red" ,
128+ "assets" : [ " swir22" , " nir2" , " red" ],
129+ "rescale" : [[0 ,5000 ],[0 ,7000 ],[0 ,9000 ]],
130+ "resampling" : " nearest"
131+ }
130132 }
131133}
132134```
@@ -167,15 +169,18 @@ the NDVI asset could also be downloaded as a standalone asset.
167169 },
168170 }
169171},
170- "renders" :{
171- "ndvi" :
172- {
173- "title" : " Normalized Difference Vegetation Index" ,
174- "assets" : [ " ndvi" ],
175- "resampling" : " average" ,
176- "colormap_name" : " ylgn"
172+ "properties" :{
173+ "renders" :{
174+ "ndvi" :
175+ {
176+ "title" : " Normalized Difference Vegetation Index" ,
177+ "assets" : [ " ndvi" ],
178+ "resampling" : " average" ,
179+ "colormap_name" : " ylgn"
180+ }
177181 }
178182}
183+
179184```
180185
181186If this case, the parameters to titiler must be extracted from both the virtual asset definition and the render object.
@@ -199,15 +204,17 @@ Result: Landsat Surface Reflectance Normalized Difference Vegetation Index (NDV
199204Obviously, the same rendering can be applied to local source assets without using the virtual asset.
200205
201206``` json
202- "renders" :{
203- "ndvi" :
204- {
205- "title" : " Normalized Difference Vegetation Index" ,
206- "assets" : [ " B05" , " B04" ],
207- "resampling" : " average" ,
208- "colormap_name" : " ylgn" ,
209- "expression" : " (B05–B04)/(B05+B04)" ,
210- "rescale" : [[-1 ,1 ]]
207+ "properties" :{
208+ "renders" :{
209+ "ndvi" :
210+ {
211+ "title" : " Normalized Difference Vegetation Index" ,
212+ "assets" : [ " B05" , " B04" ],
213+ "resampling" : " average" ,
214+ "colormap_name" : " ylgn" ,
215+ "expression" : " (B05–B04)/(B05+B04)" ,
216+ "rescale" : [[-1 ,1 ]]
217+ }
211218 }
212219}
213220```
0 commit comments