WMS:Contour Options

From XMS Wiki
Jump to: navigation, search
Example of the Contour Options dialog.

The options used to generate contours can be edited by selecting the Contour Options command in the Display menu. Each object that can be contoured (i.e. DEMs, TINs, Grids, Flood Plains) has its own set of contour options. This means there can be color filled contours for a DEM and linear contours on a TIN at the same time. The set of contour options being edited is determined by either the current module and/or the display options dialog from which the contour options are activated. For 2D grids there is set of contour options associated with dataset and the options of each dataset can be specified by right-clicking on the dataset folder from the Tree window, or by selecting an active dataset and choosing the Contour Options command or Macro.

The items in the Contour Options dialog are as follows:

Dataset Information

The values shown in the upper left corner of the dialog correspond to the maximum and minimum values in the active dataset (TIN, DEM, etc.). These values are useful when choosing an appropriate contour interval.

Contour Interval

Three options are provided for defining contour intervals in the Contour Options dialog. The options are as follows:

Number of Contours

With the Number of Contours option, an integer is entered representing the total number of contours. The contour interval is adjusted based on the current active dataset so that the contours are evenly spaced and the number of contours correspond exactly to the specified value.

Specified Interval

With the Specified Interval option, the contour interval (5, 10, 20, etc.) is entered directly.

Specified Values

The Specified Values option allows entering a list specific contour values. Contours are only generated at these values.

If the Log Scale option is selected, WMS automatically assigns contour intervals as multiples of 10. Furthermore, if the color-fill or color ramp option is being used, the colors assigned to the contours are distributed in a logarithmic fashion, rather than linearly interpolated from the low to high values.

Contour Method

The options at the lower left of the dialog control how the contours are computed. Three contouring methods are available:

Normal Linear Contours

The default method is Normal linear contours and results in the contours being displayed as piece-wise linear strings.

LinearContours.png

Color Fill Between Contours

If the Color fill between contours button is selected, the region between adjacent contour lines is filled with a solid color. For DEMs each DEM grid cell is filled with the color corresponding to the elevation of that cell. For 2D Grids the color fill can be smoothed across cell boundaries (similar to the TINs method) or cell filled (similar to the DEM method).

ColorFillContour.png

A transparency value can be set for color filled contours so that an image or other data can be seen through the color filled contours.

Setting transparency in a color-filled contour.png

Cubic Spline Contours

If the Cubic spline contours button is selected, the contours are computed in strings and drawn as cubic splines. In some cases, drawing the contours as splines can cause the contours to appear smoother.

Occasionally, loops appear in the splines or the splines cross neighboring contour splines. These problems can sometimes be fixed by adding tension to the splines. A tension factor greater than zero causes the cubic spline to be blended with or converge to a linear spline based on the same set of points. A tension factor of unity causes the cubic spline to coincide with the linear spline.

Legend

A legend displaying the range of colors and associated values can be turned on for the current set of contour options. The legend options include a title, font, size and position. By default the legend will be placed in the upper left of the graphics window, but can be positioned in the other three corners as well. This is important when displaying contours of more than one dataset at a time.

Contour Legend Options dialog

Bold Contours

The Bold every... option can be used to display contours at selected intervals with a thicker line width.

BoldContours.png

Contour Labels

The Label every... option can be used to plot labels on contours at selected intervals. The contour label options are edited using the Contour Labels dialog.

The Contour Label Options tab in the Contour Options dialog is used to set the label color and font, the number of decimal places used to plot the label, and the spacing used when the labels are generated automatically. The default spacing value controls the placement of labels when labels are generated automatically. Labels can be added to contours in one of two ways:

  • If the contour label option is selected in the Contour Options dialog, labels are automatically placed on the contours.
WMS ContourLabels.png
  • In some modules, contour labels can be added manually to contours by selecting the Contour Labels tool WMS ContourLabelsTool.svg in the Tool Palette and clicking on the contours where labels are desired. By default, the dataset value corresponding to the point that was clicked is computed and a label corresponding to the nearest contour value is drawn centered at the point that was clicked. An option can be set in the Contour Label Options dialog to use the exact value at the point that is clicked as opposed to using the nearest contour value. This option is useful to post dataset value labels in regions where there are no contours.
WMSContourLabels.png

If the mouse button is held down, a box showing the outline of the label is drawn. The box can then be positioned precisely with the mouse. A line is drawn from the box to the point that was clicked to help keep track of the contour that was selected. Contour labels can be deleted by holding down the SHIFT key while clicking on a label.

The orientation of labels can either be parallel with the contours or always horizontal on the screen

The Remove Current Labels button will eliminate all contour labels, whether they were created with the labeling tool or automatically.

Contour Specified Range

Regardless of which option is selected for the contour interval, a maximum and a minimum contour value can be specified and the contouring can be restricted to the specified range.

ContourSpecifiedRange.png

Contour Colors

The options in the lower right corner of the Contour Options dialog define what colors are used when the contours are displayed. The Color Options button is used to set the default contour color.

Related Topics