First, i used SearchCursor to read my dbf file, which contains coordinates as shown in follow,
ID XMIN YMIN XMAX YMAX 1 -52800.0 -63000.0 -52000.0 -62400.0 2 -48800.0 -60600.0 -48000.0 -60000.0 ...etc then, i want insert these coordinates to create multi-polygons, but it always come out an error message "In.insertRow(row) TypeError: sequence size must match size of the row." the code is shown below:
sch_c=arcpy.da.SearchCursor(in_csv,["ID","XMIN","YMIN","XMAX","YMAX"] in_c=arcpy.da.InsertCursor(fc,"SHAPE@") for row in sch_c in_c.insertRow(row) How to revise, can anyone help?
أكثر...
ID XMIN YMIN XMAX YMAX 1 -52800.0 -63000.0 -52000.0 -62400.0 2 -48800.0 -60600.0 -48000.0 -60000.0 ...etc then, i want insert these coordinates to create multi-polygons, but it always come out an error message "In.insertRow(row) TypeError: sequence size must match size of the row." the code is shown below:
sch_c=arcpy.da.SearchCursor(in_csv,["ID","XMIN","YMIN","XMAX","YMAX"] in_c=arcpy.da.InsertCursor(fc,"SHAPE@") for row in sch_c in_c.insertRow(row) How to revise, can anyone help?
أكثر...