Commit 79f9a861 authored by Gaetano Raffaele's avatar Gaetano Raffaele

FIX: bug in map production function

parent 7dd17d57
......@@ -702,7 +702,7 @@ def main(argv):
ras_list = []
for map,ref in zip(map_list,ref_list):
ras_list.append(final_fld + '/MAPS/RASTER_' + cfield + '/' + os.path.basename(map).replace('.shp', '_' + cfield + '.tif'))
cmd = ['otbcli_Rasterization', '-in', map, '-im', ref, '-mode', 'attribute', '-mode.attribute.field', cfield, '-out', ras_list[-1]]
cmd = ['otbcli_Rasterization', '-in', map, '-im', ref, '-mode', 'attribute', '-mode.attribute.field', 'p'+cfield, '-out', ras_list[-1]]
subprocess.call(cmd,shell=sh)
cmd = ['gdalbuildvrt', '-srcnodata', '0', '-vrtnodata', '0', final_fld + '/Classif_' + cfield + '.vrt'] + ras_list
......
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