不具合
| 不具合 ID 番号 | BUG-000151375 |
|---|---|
| 送信されました | August 5, 2022 |
| 最終更新日 | July 4, 2026 |
| 適用対象 | ArcGIS Pro |
| 見つかったバージョン | 2.9 |
| オペレーティング システム | Windows OS |
| オペレーティング システムのバージョン | N/A |
| ステータス | Under Consideration |
Use pt.M = "nan" instead of None and ensure the geometry is M-enabled when recreating it.
def dropMValues(fc):
spatial_reference = arcpy.Describe(fc).spatialReference
with arcpy.da.UpdateCursor(fc, "SHAPE@") as rows:
for row in rows:
geom = row[0]
parts = arcpy.Array()
for part in geom:
points = arcpy.Array()
for point in part:
point.M = "nan" # math.nan and float("nan") will also work
points.append(point)
parts.append(points)
row[0] = arcpy.Polyline(parts, spatial_reference, has_m=True)
rows.updateRow(row)
不具合 ID: BUG-000151375
ソフトウェア:
ArcGIS エキスパートのサポートを受ける
Esri Support アプリのダウンロード