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])
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.