方法

ArcGIS Pro のラベルのフィールドから特定の値を除外する

Last Published: July 20, 2023

サマリー

In some instances, it is necessary to exclude non-required values from a field used to label a map. This article describes the workflow to exclude certain values from a field in a feature layer label in ArcGIS Pro. In this example, when labeling a map using a number field, some features in the number field have zero values, and the zeros must be excluded.

The map of trails in the Zion National Park region labeled by numbers with zeros.

手順

  1. In the Contents pane, select the feature layer.
  2. On the top ribbon, under Feature Layer, click the Labeling tab, and click the Enable Labeling The Enable Labeling icon. icon. The Label icon is highlighted when it is enabled.
  3. In the Label Class group, click the SQL Query The SQL Query icon. icon in the Class section. The Label Class - <layer_name> pane opens.
  4. In the Label Class - <layer_name> pane, on the SQL The SQL tab. tab, click the New expression drop-down arrow. Select Create a new expression.
  5. Specify the Where clause as <field> is not equal to 0. In this example, the field is USE.
Note:
Optionally, click Add Clause The Add Clause icon., select the And clause, and specify it as <field> is not equal to <value> to add another value to be excluded from the label.
  1. Click Apply.
The Label Class pane displaying the SQL query tab with the Where clause and its components.

The image below displays the map without zeros in the label.

The map of trails in the Zion National Park region labeled by numbers without zeros.

記事 ID:000025277

新しい問題や一般的な問題に対する通知とソリューションの受け取り

新しい AI チャットボットから、要約された回答とビデオソリューションを入手してください。

Esri Support アプリのダウンロード

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動