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'
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.