<div dir="ltr">if I try to use wildcard:<div>gdalbuildvrt output.vrt input/*.ecw</div><div>I get the error:</div><div>ERROR 4: `input/*.ecw' does not exist in the file system, and is not recognized as a supported dataset name.<br></div><div>it doesn't matter if I use / or \ or * or *.ecw or *.*.</div><div><br></div><div>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.</div><div><br></div><div>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.</div><div>Thanks for the quick help.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 4, 2021 at 4:17 PM Mateusz Loskot <<a href="mailto:mateusz@loskot.net">mateusz@loskot.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto">On Thu, 4 Feb 2021, 23:02 Simon Shak, <<a href="mailto:skunkmyrddyn@gmail.com" target="_blank">skunkmyrddyn@gmail.com</a>> wrote:</div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>If I do it straight via commandline as:</div><div>for %f in (input\*.ecw) do (gdalbuildvrt output.vrt %f)</div><div>I wind up with a VRT with only one of the several hundred files in it.</div></div></blockquote></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Yes, that's expected, isn't it.</div><div dir="auto"><br></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>if I try it using a file list by first:</div><div>for %f in (input\*.ecw) do (echo %f >> filelist.txt)</div><div>then:</div><div>gdalbuildvrt -input_file_list filelist.txt output.vrt</div></div></blockquote></div><div dir="auto"><br></div><div dir="auto">I assume you've read the docs, why don't you feed it with input/*.ecw directly. </div><div dir="auto"><br></div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>I get a bunch of errors saying:</div><div>ERROR 4: `ecw\N39.250W119.500N39.375W119.375.ecw ' not recognized as a supported file format.</div></div></blockquote></div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">ML</div></div>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div>