I'm trying to use an Insert Cursor to insert a point geometry into an existing point feature class.
I'm finding the coordinate and appending them to a list called rowValues, ex:
rowValues.append("((({0}, {1}), 34))".format(X, Y))This is giving me a list of value in this format:
((3656320.51246, 1613747.99484), 34)Here is the cursor I am using:
cursor = arcpy.da.InsertCursor("Points",("SHAPE@XY","QuarterSections"))When I run this code:
for row in cursor: cursor.insertRow(row)I get this follow error:
Traceback (most recent call last): File "Quarter.py", line 110, in cursor.insertRow(row)TypeError: sequence size must match size of the rowCan I not use the string formatting? I've been trying to figure this out for awhile now, but I'm stumped.
أكثر...
I'm finding the coordinate and appending them to a list called rowValues, ex:
rowValues.append("((({0}, {1}), 34))".format(X, Y))This is giving me a list of value in this format:
((3656320.51246, 1613747.99484), 34)Here is the cursor I am using:
cursor = arcpy.da.InsertCursor("Points",("SHAPE@XY","QuarterSections"))When I run this code:
for row in cursor: cursor.insertRow(row)I get this follow error:
Traceback (most recent call last): File "Quarter.py", line 110, in cursor.insertRow(row)TypeError: sequence size must match size of the rowCan I not use the string formatting? I've been trying to figure this out for awhile now, but I'm stumped.
أكثر...