Commit 0fc8bd31 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Another cache directory fix

parent 4f364151
......@@ -177,7 +177,7 @@ def run(filenames, cache, refresh, directory, overwrite, zoomLevels):
filterLevel = "levels/{}.level".format(zoom)
if os.path.exists(filterLevel):
call(["osmconvert", "-t={}/osmconvert_tmp-".format(cache), "--complete-ways", "--complex-ways", "--drop-version", boxString, cutted, "-o={}".format(os.path.join(cache, filterTarget))])
call(["osmfilter", "--parameter-file={}".format(filterLevel), os.path.join(path, filterTarget), "-o={}".format(os.path.join(path, target))])
call(["osmfilter", "--parameter-file={}".format(filterLevel), os.path.join(cache, filterTarget), "-o={}".format(os.path.join(path, target))])
os.remove(os.path.join(cache, filterTarget))
else:
call(["osmconvert", "-t={}/osmconvert_tmp-".format(cache), "--complete-ways", "--complex-ways", "--drop-version", boxString, cutted, "-o={}".format(os.path.join(path, target))])
......
Supports Markdown
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