操作方法
在 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.
Text($feature["<field_name>"], '<value>')

[field_name].zfill(<value>)

以下地图显示了标注中带有前导零的数据。

文章 ID: 000031747
获取来自 ArcGIS 专家的帮助
立即开始聊天