Apply and display slope attribute to trail route in 10m segments (or similar)
Hi GM,
I am working on some maps of ski trails. The trails are all surveyed and I have a nice lidar-derived DEM layer for the location.
I would like to display the trails colour-coded along their lengths according to slope, to show how the gradient varies. I have chosen an increment of 10m as a suitable length for each trail segment. I have subdivided an example trail into 10m segments via:
Crop/combine/split functions>Split at specified spacing
Having done this, Analysis/Measurement > Measure confirms that each trail segment has all the standard stats calculated. However I have not found a way to use the slope variable as an attribute in terms of how the line segments are displayed. I would like to use some sort of logical colour scheme to show the steepness of the gradient for each 10 m section. When I select the whole segmented trail I can go to Attribute/Style Functions and then the obvious selection would seem to be Add Style Attributes to Selected Features, but when I click that, nothing happens. Maybe I am approaching this the wrong way. Suggestions appreciated.
Rob
GM 17.1.0
I am working on some maps of ski trails. The trails are all surveyed and I have a nice lidar-derived DEM layer for the location.
I would like to display the trails colour-coded along their lengths according to slope, to show how the gradient varies. I have chosen an increment of 10m as a suitable length for each trail segment. I have subdivided an example trail into 10m segments via:
Crop/combine/split functions>Split at specified spacing
Having done this, Analysis/Measurement > Measure confirms that each trail segment has all the standard stats calculated. However I have not found a way to use the slope variable as an attribute in terms of how the line segments are displayed. I would like to use some sort of logical colour scheme to show the steepness of the gradient for each 10 m section. When I select the whole segmented trail I can go to Attribute/Style Functions and then the obvious selection would seem to be Add Style Attributes to Selected Features, but when I click that, nothing happens. Maybe I am approaching this the wrong way. Suggestions appreciated.
Rob
GM 17.1.0
Tagged:
Answers
-
Anyone? Any ideas appreciated. thanks.
Rob -
Hi Rob,
Here is something you can try (assumes that all of your segments are in the same layer):- In the Control Center, select the layer that contains your trail segments.
- Click Options...
- On the Vector Options screen, click on the Line Styles tab.
- Choose "Apply Styling Based on Attribute/Name Values"
- Under "Attribute/Name to Base Style On", choose the slope attribute
- You will need to set up a style for each value. You can use the "Init from Values..." button to help with this task.
- After setting up the styles, click OK.
- Each segment should now be given a color based on its slope.
Bob
Categories
- 12.6K All Categories
- 5.5K Features Discussion
- 337 Downloading Imagery
- 1.3K Elevation Data
- 379 Georeferencing Imagery Discussion
- 620 GM Script Language
- 52 User Scripts
- 113 GPS Features
- 405 Projection Questions
- 815 Raster Data
- 1.3K Vector Data
- 6.5K Support
- 171 Announcement and News
- 897 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 559 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 231 How I use Global Mapper
- 106 Global Mapper Forum Website