You are on page 1of 1

from __future__ import print_function

#!/usr/bin/env python
# tries stress SST, SAT and MSAT

from time import *


from xlwt.Workbook import *
from xlwt.Style import *
#importar arcpy
import arcpy

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...")

You might also like