import csv with arcpy.da.SearchCursor(featureClass, ["OID@","SHAPE@XY"],explode_to_points=True) as cursor: with open("outputFile.csv","wb") as csvfile: writer = csv.writer(csvfile) writer.writerow(["FID","LAT","LON"]) for row in cursor: FID = row[0] lat = row[1][1] lon = row[1][0] writer.writerow([FID,lat,lon])
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.