ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Placing labels for contours

When labeling contour features, you may want to label only certain contour intervals in a laddered placement and place a halo around those labels so that they are easily read on top of the contour features. Use the Maplex Label Engine to place these labels.

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. Enable the Maplex Label Engine.
  2. Set up the Contour Placement style.
  3. Create a halo behind the feature.
  4. 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

  • Creating text symbols
  • Building label expressions
  • Labeling using the Contour Placement style
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal