I am struggling with a very simple task of inserting "SHAPE@XY" into a point feature class. Following is what I have:
xy = [(361087.15436001675, 198747.07296730898), (361530.56426259346, 198976.62248019245), (361692.3015462744, 197815.78617074457), (361845.0959187896, 198297.07296730898), (362135.3345548634, 197552.7531621556)] fc = "C:/temp/xy.shp" cursor = arcpy.da.InsertCursor(fc, ["SHAPE@XY"]) for row in xy: cursor.insertRow(row) del cursor
it throws back error:
TypeError: sequence size must match size of the row
I used field calculator to add x and y field into the same shapefile form where I retrieved these points, and it works fine to add above set of co-ordinates to a multiline feature class, but above set of lines fail. Any suggestions?