HOW TO

Display contour labels at specific intervals using SQL in ArcGIS Pro

First Published: August 17, 2023
Last Published: August 11, 2026

Summary

In ArcGIS Pro, the labeling functionality manages and displays labels based on attributes of a particular field. However, when the map area is extensive, cluttering can become a concern, as demonstrated in the map below. Instead of displaying all the labels, it is helpful to selectively display specific contour intervals to enhance readability.

Image of a cluttered map.

This article outlines the steps to unclutter the map labels using a SQL expression to display the labels at specified contour intervals without excessive label information.

Procedure

  1. Open the ArcGIS Pro project.
  2. In the Contents pane, right-click the contour layer and click Label to enable labeling. In this example, Contourlayer is used.
The Contents pane with the Label option.
  1. On the Labeling tab, in the Layer group, ensure Label is enabled.
    1. In the Label Class group, for Field, select the field with the elevation value. In this example, Contour is selected.
    2. Click SQL Query to open the Label Class pane.
The Labeling tab
  1. In the Label Class pane, click + New expression.
    1. Toggle SQL Editor on.
    2. Specify the following expression in the SQL expression text box. Replace <field_name> with the name of the field containing the contour elevation value, and <Interval> with the desired interval value. In this example, the field name is Contour and the interval value is 25.
    3. Click Apply.
MOD(<field_name>,<Interval>)=0
The Label Class pane

The map below shows the contour labels are displayed at the 25th intervals, as specified in the SQL expression.

Image displaying specific contour labels.

Article ID: 000030986

Software:
  • ArcGIS Pro

Get support with AI

Resolve your issue quickly with the Esri Support AI Chatbot.

Start chatting now

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Start chatting now

Go to download options