You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Copy file name to clipboardExpand all lines: docs/src/advanced/Algorithms.md
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,11 @@ The algorithms are meant to overcome the limitation of `expression` (using [nume
6
6
7
7
We added a set of custom algorithms:
8
8
9
-
-`hillshade`: Create hillshade from elevation dataset
10
-
-`contours`: Create contours lines (raster) from elevation dataset
11
-
-`terrarium`: Mapzen's format to encode elevation value in RGB values (https://github.com/tilezen/joerd/blob/master/docs/formats.md#terrarium)
12
-
-`terrainrgb`: Mapbox's format to encode elevation value in RGB values (https://docs.mapbox.com/data/tilesets/guides/access-elevation-data/)
9
+
-`hillshade`: Create hillshade from elevation dataset (parameters: azimuth (45), angle_altitude(45))
-`slope`: Create degrees of slope from elevation dataset
12
+
-`terrarium`: [Mapzen's format]((https://github.com/tilezen/joerd/blob/master/docs/formats.md#terrarium)) to encode elevation value in RGB values `elevation = (red * 256 + green + blue / 256) - 32768`
13
+
-`terrainrgb`: [Mapbox](https://docs.mapbox.com/data/tilesets/guides/access-elevation-data/)/[Maptiler](https://docs.maptiler.com/guides/map-tilling-hosting/data-hosting/rgb-terrain-by-maptiler/)'s format to encode elevation value in RGB values `elevation = -10000 + ((red * 256 * 256 + green * 256 + blue) * 0.1)`
13
14
-`normalizedIndex`: Normalized Difference Index (e.g NDVI)
0 commit comments