Skip to main content
add bash syntax
Source Link
matt wilkie
  • 28.3k
  • 35
  • 149
  • 283

from my testing: Unrecognised command option: - is because a filename in files.txt has a dash in it. Enclose the names in quotes ("this-is-an-image.tif") and it will work fine.

Unfortunately the gdal_retile will not operate on multiple files ticket seems to be true; perhaps give it a bump. Here is a Windows cmd line snippet to work around that:

for %a in (*.tif) do gdal_retile "%a" -targetDir pyramids

to use in batch file double up the percents, e.g. %%a

In Linux or Mac bash shell subst a and $a for % and separate phrases with ; (courtesy of @decoder247):

for a in (*.tif); do gdal_retile $a -targetDir pyramids; done

from my testing: Unrecognised command option: - is because a filename in files.txt has a dash in it. Enclose the names in quotes ("this-is-an-image.tif") and it will work fine.

Unfortunately the gdal_retile will not operate on multiple files ticket seems to be true; perhaps give it a bump. Here is a Windows cmd line snippet to work around that:

for %a in (*.tif) do gdal_retile "%a" -targetDir pyramids

to use in batch file double up the percents, e.g. %%a

from my testing: Unrecognised command option: - is because a filename in files.txt has a dash in it. Enclose the names in quotes ("this-is-an-image.tif") and it will work fine.

Unfortunately the gdal_retile will not operate on multiple files ticket seems to be true; perhaps give it a bump. Here is a Windows cmd line snippet to work around that:

for %a in (*.tif) do gdal_retile "%a" -targetDir pyramids

to use in batch file double up the percents, e.g. %%a

In Linux or Mac bash shell subst a and $a for % and separate phrases with ; (courtesy of @decoder247):

for a in (*.tif); do gdal_retile $a -targetDir pyramids; done
snippet example to use multiple input files
Source Link
matt wilkie
  • 28.3k
  • 35
  • 149
  • 283

from my testing: Unrecognised command option: - is because a filename in files.txt has a dash in it. Enclose the names in quotes ("this-is-an-image.tif") and it will work fine.

However there also seems to be a bug, in that gdal_retile only works with a single filename at a time (so what's the point of using optfile). I get "ERROR 5: imagename.png GDALDataset::GetRasterBand(2) - Illegal band #" when adding more than one input file.

My mistake, the error was due to a bad image in my list. Unfortunately the gdal_retile will not operate on multiple files ticket seems to be true; perhaps give it a bump. Here is a Windows cmd line snippet to work around that:

for %a in (*.tif) do gdal_retile "%a" -targetDir pyramids

to use in batch file double up the percents, e.g. %%a

from my testing: Unrecognised command option: - is because a filename in files.txt has a dash in it. Enclose the names in quotes ("this-is-an-image.tif") and it will work fine.

However there also seems to be a bug, in that gdal_retile only works with a single filename at a time (so what's the point of using optfile). I get "ERROR 5: imagename.png GDALDataset::GetRasterBand(2) - Illegal band #" when adding more than one input file.

My mistake, the error was due to a bad image in my list. Unfortunately the gdal_retile will not operate on multiple files ticket seems to be true; perhaps give it a bump.

from my testing: Unrecognised command option: - is because a filename in files.txt has a dash in it. Enclose the names in quotes ("this-is-an-image.tif") and it will work fine.

Unfortunately the gdal_retile will not operate on multiple files ticket seems to be true; perhaps give it a bump. Here is a Windows cmd line snippet to work around that:

for %a in (*.tif) do gdal_retile "%a" -targetDir pyramids

to use in batch file double up the percents, e.g. %%a

strike out mistake
Source Link
matt wilkie
  • 28.3k
  • 35
  • 149
  • 283

from my testing: Unrecognised command option: - is because a filename in files.txt has a dash in it. Enclose the names in quotes ("this-is-an-image.tif") and it will work fine.

However there also seemsHowever there also seems to be a bug, in that gdal_retile only works with a single filename at a time (so what's the point of using optfile). I get "ERROR 5: imagename.png GDALDataset::GetRasterBand(2) - Illegal band #" when adding more than one input file.

My mistake, the error was due to be a bug,bad image in that gdal_retile only works with a single filename at a time (so what's the point of using optfile). I get "ERROR 5: imagename.png GDALDataset::GetRasterBand(2) - Illegal band #" when adding more than one input filemy list. Perhaps giveUnfortunately the Gdal Ticket #4692gdal_retile will not operate on multiple files ticket seems to be true; perhaps give it a bump.

from my testing: Unrecognised command option: - is because a filename in files.txt has a dash in it. Enclose the names in quotes ("this-is-an-image.tif") and it will work fine.

However there also seems to be a bug, in that gdal_retile only works with a single filename at a time (so what's the point of using optfile). I get "ERROR 5: imagename.png GDALDataset::GetRasterBand(2) - Illegal band #" when adding more than one input file. Perhaps give Gdal Ticket #4692 a bump.

from my testing: Unrecognised command option: - is because a filename in files.txt has a dash in it. Enclose the names in quotes ("this-is-an-image.tif") and it will work fine.

However there also seems to be a bug, in that gdal_retile only works with a single filename at a time (so what's the point of using optfile). I get "ERROR 5: imagename.png GDALDataset::GetRasterBand(2) - Illegal band #" when adding more than one input file.

My mistake, the error was due to a bad image in my list. Unfortunately the gdal_retile will not operate on multiple files ticket seems to be true; perhaps give it a bump.

Source Link
matt wilkie
  • 28.3k
  • 35
  • 149
  • 283
Loading