laptop and a wrench

不具合

Using the Intersect_analysis function with a SearchCursor results in duplicate features in ArcMap Python 2.7.14 and Python 3.6.7.

最後に公開された状態: March 19, 2019 ArcGIS for Desktop
不具合 ID 番号 BUG-000119731
送信されましたJanuary 30, 2019
最終更新日July 4, 2025
適用対象ArcGIS for Desktop
見つかったバージョン10.6.1
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0
修正されたバージョン2.9
ステータスFixed

対処法

Use the function outside the SearchCursor and export every feature from the Output to a new feature class or shapefile or use the following code:import arcpymerged = arcpy.CopyFeatures_management("test", arcpy.Geometry())[0]with arcpy.da.SearchCursor('fishnetpoly', ["SHAPE@","OID@"]) as sCursor:    for row in sCursor:        intersect = merged.intersect(row[0], 4)        arcpy.CopyFeatures_management(intersect, "intersected_{0}".format(row[1]))        print ("Intersected " + str(row[1])) 

再現の手順

不具合 ID: BUG-000119731

ソフトウェア:

  • ArcGIS for Desktop

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動