HOW TO

Display contour labels at specific intervals using SQL in ArcGIS Pro

Last Published: July 19, 2024

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. Right-click the contour layer from the Contents pane (in this example, the layer is Contourlayer) and click Label to enable labeling.
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.
Configuration in Label tab.
  1. In the Label Class pane, click + New expression.
    1. Toggle SQL 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 settings

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 3 1
  • ArcGIS Pro 3 3
  • ArcGIS Pro 3 2

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options