I can show sample code, but I'm not trying to improve it or anything. The text file layout was kinda weird--we're not using it any more. The coordinates are now in a Teradata table loaded with ST_GEOMETRY points, along with some additional data. csv_f = csv.reader(f)
for row in csv_f:
mbr = [(row[0], row[1], row[2], (row[1], row[2]))]
dstMbrList.append(mbr)
f.close()
in_fc = dataPath + "a2c_output.gdb/spatialRefXY"
spatial_ref = arcpy.Describe(in_fc).spatialReference
typez = numpy.dtype=[('id', 'S23'), ('X', 'f8'), ('Y', 'f8'), ('XY', '<f8', 2)]
prv_arr = numpy.array(dstPrvList, typez)
out_prv_fc = dataPath + "a2c_output.gdb/outDstPrvTestXY01"
if arcpy.Exists(out_prv_fc):
arcpy.Delete_management(out_prv_fc)
arcpy.da.NumPyArrayToFeatureClass(prv_arr, out_prv_fc, ['XY'], spatial_ref) As long as I end up with the FeatureClass at the end, we're happy.
... View more