laptop and a wrench

漏洞

Empty or Null M geometry returns the warning message: "WARNING 000635: Skipping feature <values> because of NULL or EMPTY geometry" when using the Calculate Geometry Attributes on a selected field for setting the point M-values.

ArcGIS Pro
漏洞 ID 编号 BUG-000173742
已提交January 21, 2025
上次修改时间June 19, 2025
适用范围ArcGIS Pro
找到的版本3.3.2
操作系统Windows OS
操作系统版本11.0 64 bit
状态As Designed

附加信息

This warning message is the expected behavior, and the message accurately describes the issue. M values cannot be calculated when this part of the geometry is empty.

解决办法

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 Pro

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项