-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Design proposal: enhancements ro raster-dem to improve hillshade and shaded-relief #338
Comments
I would recommend defining exactly which parameters in the style definition would allow this. |
For aspect, my thought would as a start be an array under paint such as: aspect-color: [ [degree, rgba], [degree, rgba], [degree, rgba],...] my though this would be a paint-property on the hillshade style layer So that would look like:
resulting in a hillshade that is colored based on the aspect of the slope. (Images courtesy of Robert Simmon's Intro to GDAL: part 5 shaded relief |
I'm not sure I understand your last comment can you elaborate? |
Once we have supporting code for aspect, then adding multi-direction lighting support would become fairly trivial. (note that maplibre uses 335 as the default illumination direction vs the 315 in the publication), this functionality would produce hillshade similar to gdaldem's multidirectional hillshade mode.
In the event that hillshade-illumination-direction was specified then the multi-direction weighting would be centered around the provided direction |
There would be no change to the existing functionality with respect to hillshade-illumination-direction, but in the event it was specified along with |
User Story
Currently, vector styling of dem data is somewhat limited, meaning most of my base layer work needs to be done as pre-styled rasters. This reduces the usefulness of what I can provide to mobile users in offline modes.
Rationale
There are some very good example write-ups on doing more advanced shaded relief using GDAL, and as shown in the following tutorial Intro to GDAL: part 5 shaded relief It would be great if we could offer this kind of shaded- relief directly within maplibre. If we start with the aspect mode, we could quickly realize Swiss Style Relief Shading which was brought to life by Eduard Imhof. Further modes like Slope could be used to help visually highlight areras that could be of intrest to a number of market segments, from Recreational Maps users such as Hiking and Skiing to areas of risk assessment related to Avalanches and Landslides.
Impact
The text was updated successfully, but these errors were encountered: