Contour Line Colors Based on Elevation
JustinK
Global Mapper UserTrusted User
Mike,
I want to create 1 foot contours. Every contour that ends in 1 (1',11',21',31' etc) is green. Every contour ending in 2 (2',12',22'...) is blue etc. So every 10 feet, you will see repeating lines of color. How do I do this?
Also, is there a way to automatically do this using a shader?
Thanks,
Justin
I want to create 1 foot contours. Every contour that ends in 1 (1',11',21',31' etc) is green. Every contour ending in 2 (2',12',22'...) is blue etc. So every 10 feet, you will see repeating lines of color. How do I do this?
Also, is there a way to automatically do this using a shader?
Thanks,
Justin
Comments
-
Justin,
If you were generating contour lines from terrain you can specify the interval for Minor Contours as 2 and also the Major Contours as 2, which means you will have alternating base and Minor Contour lines. You can setup the style for the different types on the Line Styles tab of the Configuration dialog and then they will color how you want.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Mike,
Ok, is there a way to make 1'-10' all to be different colors. Also 11'-20' where 11' is the same as 1', 12' is the same color as 2', for the entire range of loaded elevation values. -
Ah that is slightly different. To do that generate the 1' contours normally, then go to the Line Styles tab of the Options dialog for the layer. There select to use attribute-based styles, then you will add 10 separate style definitions with the colors that you want. The names you will match against are '*0 *', '*1 *', ..., '*9 *'. This will allow you to set the line style to use for each value of contour line ending in 0, 1, ... 9.
Let me know if I can be of further assistance.
Thanks,
Mike
Global Mapper Guru
gmsupport@bluemarblegeo.com
http://www.globalmapper.com -
Perfect! That is exactly what I want.
Thanks
Categories
- 12.7K All Categories
- 5.6K Features Discussion
- 342 Downloading Imagery
- 1.3K Elevation Data
- 380 Georeferencing Imagery Discussion
- 628 GM Script Language
- 53 User Scripts
- 113 GPS Features
- 414 Projection Questions
- 819 Raster Data
- 1.3K Vector Data
- 6.6K Support
- 177 Announcement and News
- 908 Bug Report
- 558 SDK
- 1.2K Suggestion Box
- 3.7K Technical Support
- 562 Other Discussion
- 129 GIS Data Sources
- 27 Global Mapper Showcase
- 233 How I use Global Mapper
- 107 Global Mapper Forum Website