操作方法
在 ArcGIS Pro 中,某些字段可能包含前导零。 通常,在将字段值显示为标注时,无需前导零,以便更好地集成数据和可视化地图。 可以在 ArcGIS Pro 中从属性表的字段中移除前导零。 本文提供了在 ArcGIS Pro 中使用 Python 或 Arcade 表达式显示标注时移除前导零,同时保留属性表中的前导零的工作流。
Note: In the Contents pane, ensure the feature layer and feature class check boxes are checked to display the labels.
Number($feature.<field_name>)
[Field_Name].lstrip("0")
下图显示了标注中不含前导零的数据。
文章 ID: 000031502
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序