Numéro d’ID de bogue |
BUG-000119731 |
Envoi | January 30, 2019 |
Dernière modification | July 4, 2025 |
S’applique à | ArcGIS for Desktop |
Version trouvée | 10.6.1 |
Système d’exploitation | Windows OS |
Version du système d’exploitation | 10.0 |
Version de correction | 2.9 |
Statut | Fixed
Le bogue a été corrigé. Pour plus d’informations, reportez-vous aux sections Version de correction et Informations supplémentaires, le cas échéant.
|
Solution de contournement
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]))
Étapes pour reproduire
ID de bogue: BUG-000119731
Logiciel: