Commit 821365eb authored by Mario Chirinos's avatar Mario Chirinos

update

parent 8cebee77
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
import sys import sys
import os import os
import json import json
import csv
#=============================================================================== #===============================================================================
def getMinMax(clase): def getMinMax(clase):
...@@ -25,8 +26,12 @@ def getMinMax(clase): ...@@ -25,8 +26,12 @@ def getMinMax(clase):
polylist.append({"wkt":wkt, "min":minval, "max":maxval}) polylist.append({"wkt":wkt, "min":minval, "max":maxval})
with open('minmax_'+clase+'.json', 'w') as outfile: with open('minmax_'+clase+'.csv', 'w') as outfile:
json.dump(polylist, outfile) writer = csv.DictWriter(outfile, fieldname=polylist[0].keys())
writer.writerheader()
for item in polylist:
writer(item)
# json.dump(polylist, outfile)
#=============================================================================== #===============================================================================
def main(argv): def main(argv):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment