Placing labels for contours

When labeling contour features, you may want to label only certain contour intervals and place a halo around those labels so that they are easily read on top of the contour features.

The image below shows contours labeled in an uphill laddered placement at every 100th interval with a halo around each label.

Index contours being labeled using a label expression and the Contour label placement option
  1. Set up the Contour Placement style.
  2. Create a halo behind the feature.
  3. Create a label expression that only labels every 100th interval.

Use one of the label expressions below, depending on your data. If you want to label only index contours, and your contour data contains an Index field that specifies which contours are index contours, you can use the label expression below:

Function FindLabel ( [ELEVATION], [index] )
If [index] = 1 Then 
FindLabel = [ELEVATION]
else 
FindLabel = ""
end if
End Function

If you want to label specified contour intervals, you can use the label expression below, replacing 100 with the interval you prefer:

Function FindLabel ([ELEVATION]) 
If ([ELEVATION] Mod 100) = 0 Then 
FindLabel = [ELEVATION] 
End If
End Function

Related Topics


5/2/2011