漏洞
| 漏洞 ID 编号 | BUG-000173742 |
|---|---|
| 已提交 | January 21, 2025 |
| 上次修改时间 | June 19, 2025 |
| 适用范围 | ArcGIS Pro |
| 找到的版本 | 3.3.2 |
| 操作系统 | Windows OS |
| 操作系统版本 | 11.0 64 bit |
| 状态 | As Designed |
If the desired M-values for every vertices in a field is available, use the below Python code:
import arcpy
# set workspace environment
arcpy.env.workspace = r"<the path to the geodatabase>"
# Feature class to update
fc = "BECSM"
# field name that contains values we want to assign to M
field_name = "Measures"
# Use Update cursor to update M-Values
with arcpy.da.UpdateCursor(fc, ["SHAPE@M", field_name]) as cursor:
for row in cursor:
# Get geometry and field value
row[0] = row[1]
# update the row with the new value
cursor.updateRow(row)
漏洞 ID: BUG-000173742
软件:
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序