I would like to loop through the shapes in the attribute table and create a new intersection point feature class for each row in the table. But every time I do this, I keep on getting the same error.
Traceback (most recent call last):
File "<stdin>", line 4, in <module>
File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\analysis.py", line 289, in Intersect
raise e
ValueError: DescribeGeometry: Unexpected error
This is the portion of the code I am working on, where tribufline and water_feature are line feature class. I t would be really helpful is someone is able to point me in the right direction because I have no idea what is causing this error
for row in arcpy.da.SearchCursor(tribufline, ["SHAPE@", "OID@"]):
line = row[0]
culint = "triculint{0}".format(row[1])
arcpy.Intersect_analysis([line, water_feature], culint, "ALL", "","POINT")