Commit 0683e2a3 authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

os.remove not possible under Win

parent 0465cb36
......@@ -458,8 +458,8 @@ class LandscapeStratification(QgsProcessingAlgorithm):
BMX_parameters = {'il': [maskc, vald], 'exp':'im1b1*im2b1', 'out':mask, 'outputpixeltype':0, 'outcontext':os.path.join(output_folder,"outcontext.txt")}
processing.run("otb:BandMathX", BMX_parameters, context=context, feedback=feedback)
os.remove(os.path.join(output_folder,"outcontext.txt"))
os.remove(maskc)
os.remove(vald)
#os.remove(maskc)
#os.remove(vald)
else:
mask = os.path.join(tmp_folder, prefix + "mask.tif")
ND_app_parameters = {"in": TS_file, "out": mask, "mode": "buildmask", 'mode.apply.mask': TS_file,
......
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