Commit 5967f77e authored by Mario Chirinos's avatar Mario Chirinos

update

parent 840a3915
...@@ -6,17 +6,25 @@ import json ...@@ -6,17 +6,25 @@ import json
#=============================================================================== #===============================================================================
def getMinMax(clase): def getMinMax(clase):
polylist = []
for item in os.listdir("."): for item in os.listdir("."):
if os.path.isdir(item): if os.path.isdir(item):
print(item) print(item)
with open(os.getcwd()+"/"+item+"/scl_data.json") as json_file: with open(os.getcwd()+"/"+item+"/scl_data.json") as json_file:
data = json.load(json_file) dataSCL = json.load(json_file)
with open(os.getcwd()+"/"+item+"/findProducts.json") as json_file:
dataWKT = json.load(json_file)
wkt = dataWKT["wkt"]
values = [] values = []
for k, v in data.items(): for k, v in dataSCL.items():
values.append(v[clase]) values.append(v[clase])
minval = min(values) minval = min(values)
maxval = max(values) maxval = max(values)
print(minval, maxval) polylist.append({"wkt":wkt, "min":minval}, "max":maxval)
print(polylist)
#=============================================================================== #===============================================================================
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