Commit fbefa373 authored by Gaetano Raffaele's avatar Gaetano Raffaele

Bug in scan-footprint mode under Linux.

parent f91d18de
......@@ -99,8 +99,10 @@ def main(argv):
if platform.system() == 'Windows':
f = open('S2DownloadScript.bat', 'w')
f.write("@echo off\n")
polycmd = 'gdal_polygonize '
else:
f = open('S2DownloadScript.sh', 'w')
polycmd = 'gdal_polygonize.py '
g = open('S2SearchLog.txt', 'w')
......@@ -154,7 +156,7 @@ def main(argv):
subprocess.call('otbcli_BandMath -il B01.jp2 -exp \"im1b1>0\" -out ' + fn + '.tif uint8',
shell=True, stdout=DEVN)
setNoDataValue(fn + '.tif')
subprocess.call('gdal_polygonize ' + fn + '.tif -f \"ESRI Shapefile" ' + fn + '.shp',
subprocess.call(polycmd + fn + '.tif -f \"ESRI Shapefile" ' + fn + '.shp',
shell=True, stdout=DEVN)
ds_query = ogr.Open(args[0])
ds_footp = ogr.Open(fn + '.shp')
......
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