laptop and a wrench

Error

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

Última publicación: March 19, 2019 ArcGIS for Desktop
Número de ID del error BUG-000119731
EnviadoJanuary 30, 2019
Última modificaciónJuly 4, 2025
Relacionado conArcGIS for Desktop
Versión encontrada10.6.1
Sistema operativoWindows OS
Versión de sistema operativo10.0
Versión corregida2.9
EstadoFixed

Solución alternativa

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])) 

Pasos para reproducir

ID del error: BUG-000119731

Software:

  • ArcGIS for Desktop

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga