print 'Creating Text File...' text = open(p.join(ws, "Addresses2.csv"), "w") text.writelines('"PID","FULL_ADD","POINT_X","POINT_Y"') srows = arcpy.SearchCursor(address) for row in srows: pid = row.getValue('PID') add = row.getValue('FULL_ADD') x = row.getValue('POINT_X') y = row.getValue('POINT_Y') text.writelines('\n"%s","%s",%s,%s' % (pid,add,x,y)) text.close() del row, srows print 'Text File Created Successfully'
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.