I am creating a list of tuples of coordinates of a feature class.
Feature class is created as such:
inFC = arcpy.GetParameterAsText(0)
The inFC is a point feature class.
I then have the following code to get the coordinates of all points in the feature class:
field = ['SHAPE@XY'] coordsList =  with arcpy.da.SearchCursor(fc, fields) as cursor: for row in cursor: coordsList.append(row)
I was expecting an output of a list of tuples as below;
[(250000, 230000), (234567, 2859340)...]
However instead I am getting a list of tuples of a tuple and a commma, as below:
[((251075.0, 237048.0),), ((250687.0, 236717.0),),...]
What is the error in my code or my approach?