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