if I try to use wildcard: gdalbuildvrt output.vrt input/*.ecw I get the error: ERROR 4: `input/*.ecw' does not exist in the file system, and is not recognized as a supported dataset name. it doesn't matter if I use / or \ or * or *.ecw or *.*.
My expectation based on the documentation and previous usage is that you can keep adding to a vrt by subsequent commands with the same vrt file unless you pass in the -overwrite option. However, your suggestion to check the filelist.txt file has found the error. Somehow a trailing space was before the CRLF and caused it to not recognize the file. Thanks for the quick help. On Thu, Feb 4, 2021 at 4:17 PM Mateusz Loskot <mate...@loskot.net> wrote: > On Thu, 4 Feb 2021, 23:02 Simon Shak, <skunkmyrd...@gmail.com> wrote: > >> >> If I do it straight via commandline as: >> for %f in (input\*.ecw) do (gdalbuildvrt output.vrt %f) >> I wind up with a VRT with only one of the several hundred files in it. >> > > > Yes, that's expected, isn't it. > > if I try it using a file list by first: >> for %f in (input\*.ecw) do (echo %f >> filelist.txt) >> then: >> gdalbuildvrt -input_file_list filelist.txt output.vrt >> > > I assume you've read the docs, why don't you feed it with input/*.ecw > directly. > > I get a bunch of errors saying: >> ERROR 4: `ecw\N39.250W119.500N39.375W119.375.ecw ' not recognized as a >> supported file format. >> > > I'd verify content of the file is single file name per line. It may matter > the EOL is LF, not CRLF, can't remember. > > ML > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org > https://lists.osgeo.org/mailman/listinfo/gdal-dev >
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev