Professional Documents
Culture Documents
#!/usr/bin/env python
# tries stress SST, SAT and MSAT
style = XFStyle()
wb = Workbook()
ws0 = wb.add_sheet('0')
colcount = 200 + 1
rowcount = 6000 + 1
#LEER ARCGIS
#
row=0
arcpy.env.workspace=r"C:\Users\Public\Cris\Datos-Codigo\Cbba.gdb\ISOTERMAS"
with arcpy.da.SearchCursor("ISOTERMAS",
["TERMAS","SHAPE@LENGTH","OID@","SHAPE@XY","SHAPE@JSON"]) as cursor:
for fila in cursor:
ws0.write(row, 0, fila[0])
ws0.write(row, 1, fila[1])
ws0.write(row, 2, fila[2])
row=row+1
print("Storing...")
wb.save('garu.xls')
print("completo...")