Commit 790fc97
Fix TerrainRGB algorithm and param user-controlled nodata-height (#1116)
* Fix TerrainRGB algorithm and param user-controlled nodata-height
Added two params `use_nodata_height and nodata_height` (or could have used a field which cold be either undefined or that height value?
* Make use of user-controlled height in terrainrgb
* Add user-controlled nodata-height for terrarium as well
* Add z_exaggeration parameter to hillshade/slope algorithms
defaults to 1, applied to gradients directly
* Add slope in algorithms doc
* Make terrainRGB/terrarium docs links instead of plain urls
* Add parameters hints to hillshade/contours
* nodata_height optional
Co-authored-by: Vincent Sarago <vincent.sarago@gmail.com>
* check nodata_height not None
Co-authored-by: Vincent Sarago <vincent.sarago@gmail.com>
* Update src/titiler/core/titiler/core/algorithm/dem.py
Co-authored-by: Vincent Sarago <vincent.sarago@gmail.com>
* Update src/titiler/core/titiler/core/algorithm/dem.py
Co-authored-by: Vincent Sarago <vincent.sarago@gmail.com>
* from typing import Optional
* WIP /cog/viewer algorithms inputs
Adding algorithm params dynamically based on the /algorithms endpoint, stored in scope, and params updated on change of selected algorithm
* Final touch-ups to /cog/viewer for algorithms visualization
Uses number inputs if param is integer or number, otherwise text input (eg nodata-height which can be either null or number)
Updates tilejson url when algorithm or its params are changed
* Revert "Final touch-ups to /cog/viewer for algorithms visualization"
This reverts commit bf094ae.
* Revert "WIP /cog/viewer algorithms inputs"
This reverts commit 31d5277.
* Add nodata_height coverage to tests
* Discard solution 1 for testing terrainrgb and terrarium
* pre-commit run --all-files
---------
Co-authored-by: Vincent Sarago <vincent.sarago@gmail.com>1 parent df1233c commit 790fc97
3 files changed
Lines changed: 50 additions & 7 deletions
File tree
- docs/src/advanced
- src/titiler/core
- tests
- titiler/core/algorithm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
239 | 249 | | |
240 | 250 | | |
241 | 251 | | |
| |||
259 | 269 | | |
260 | 270 | | |
261 | 271 | | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
262 | 284 | | |
263 | 285 | | |
264 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| 79 | + | |
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
| |||
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
| 95 | + | |
| 96 | + | |
89 | 97 | | |
90 | 98 | | |
91 | 99 | | |
| |||
161 | 169 | | |
162 | 170 | | |
163 | 171 | | |
| 172 | + | |
164 | 173 | | |
165 | 174 | | |
166 | 175 | | |
| |||
170 | 179 | | |
171 | 180 | | |
172 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
173 | 186 | | |
174 | 187 | | |
175 | 188 | | |
| |||
191 | 204 | | |
192 | 205 | | |
193 | 206 | | |
| 207 | + | |
194 | 208 | | |
195 | 209 | | |
196 | 210 | | |
| |||
224 | 238 | | |
225 | 239 | | |
226 | 240 | | |
227 | | - | |
228 | | - | |
229 | | - | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
230 | 250 | | |
231 | 251 | | |
232 | 252 | | |
| |||
0 commit comments