Repository navigation
feat(ui): a "Terrain type" field in a Shaded Relief's style pane (#3142, part 2) - #3313
Conversation
…ngeos#3142, part 2) The style pane's Shaded Relief settings gain Terrain type (-1 to 1), after Aerial perspective; it runs raster.symbology with "terrain", the setting part 1 (opengeos#3304) added. The user guide describes it after Aerial perspective. A layout render test draws a frame over gentle hills and a colour bar at 0, +0.6 and -0.6: the frame's contrast grows at +0.6 and falls at -0.6, and the colour bar is the same at all three. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewI found no bugs, security issues, or AGENTS.md violations in this PR. It is a small UI field plus a doc section and a test, and it adds the BugsNone found. What I checked:
SecurityNone found. The new input is a bounded number and is checked before use. PerformanceNone found. The change adds one more slider and one more closure capture. Quality
Earlier concerns: none. AGENTS.mdNone found. The PR reaches the desktop and browser through the shared pane, and it leaves the CLI, Python, and assistant unchanged, as the PR body says. It adds no command, parameter, or schema change, so I did not run the test suite, Change sizeCompared with the base: the whole PR against main (merge base 8c46608 to PR head d067231).
|
📖 Docs preview
GitHub Pages takes a minute or two to publish a new commit. Newer commits from the fork aren't published until a maintainer adds the |
Closes #3142 (part 2 of 2; part 1 was #3304).
What it does
The style pane's Shaded Relief settings gain Terrain type (−1 to 1), after Aerial perspective. Moving it runs
raster.symbologywith"terrain", the setting part 1 added, so Undo, saving and the project capability work as they do for the command. Its tooltip: "How the sun lights slopes gentler or steeper than 30°: above 0 brings out low hills, below 0 stresses steep ground, from -1 to 1".The user guide (
docs/user-guide/data.md) describes the setting after Aerial perspective: what it does above and below 0, the curve, that only the sun's light uses it, that the colour bar is the same at any setting, and about 0.6 as a start for a plateau or a plain with low hills.The pane above: Copernicus DEM GLO-30 of Ouro Preto (Minas Gerais), Terrain ramp, stretch 650–1,912 m, sun 315° / 40°, Z factor 2, terrain type 0.6, from the headless
ui_shotexample. DEM: Copernicus DEM GLO-30, © DLR e.V. and Airbus, provided under COPERNICUS by the European Union and ESA.Surfaces
raster.symbologysince feat(map): a Shaded Relief's terrain type reshapes the slopes the sun lights (#3142, part 1) #3304.Tests
rustgis-render:a_reliefs_terrain_type_changes_its_frames_contrast_not_its_colour_bardraws a layout page with a frame over gentle hills (slopes of a few degrees) and a colour bar, at 0, +0.6 and −0.6. The frame's grey levels spread more at +0.6 and less at −0.6 than at 0; the colour bar's pixels are the same at all three.rustgis-render999 passed;rustgis-ui-egui1739 passed (lib).cargo fmtandcargo clippy -D warnings(render, ui-egui, all targets) pass.Size: 105 changed lines (+103 −2) in 3 files, 82 of them the test.
🤖 Generated with Claude Code
Summary by CodeRabbit