[gdal-dev] gdalwarp utility

Even Rouault even.rouault at mines-paris.org
Sun Jul 22 10:34:30 PDT 2012


Le dimanche 22 juillet 2012 16:28:48, Livneh Yehiyam a écrit :
> Hi
> I've come upon a limitation of the gdalwarp utility under windows. When
> creating a mosaic from a large number of files from the command line, I
> ran into the limit of the command line length in windows (about 8000
> characters). I added the functionality of reading the source files from a
> txt file (similar to gdalbuildvrt -input_file_list option) to gdalwarp. I
> think it could benefit other users, and the symmetry of the API to add
> this to the official version.
> 
> A patch against trunk is included.

Actually this is not needed (and there was not a real reason for -
input_file_list to exist in gdalbuildvrt too). All GDAL/OGR utilities have a 
"--optfile filename" (note the double dash before optfile) option that uses the 
lines of filename as arguments of the utility. 

See :

$ gdalinfo --help-general
Generic GDAL utility command options:
  --version: report version of GDAL in use.
  --license: report GDAL license info.
  --formats: report all configured format drivers.
  --format [format]: details of one format.
  --optfile filename: expand an option file into the argument list.
  --config key value: set system configuration option.
  --debug [on/off/value]: set debug level.
  --pause: wait for user input, time to attach debugger
  --locale [locale]: install locale for debugging (ie. en_US.UTF-8)
  --help-general: report detailed help on general options.


So you should be able to run :

gdalwarp --optfile text_file_with_src_files.txt target.tif

> 
> Yehiyam Livneh
> 
> 
> ***************************************************************************
> ******************* This message (including any attachments) issued by
> RAFAEL- ADVANCED DEFENSE SYSTEMS LTD. (hereinafter "RAFAEL") contains
> confidential information intended for a specific individual and purpose,
> may constitute information that is privileged or confidential or otherwise
> protected from disclosure. If you are not the intended recipient, you
> should contact us immediately and thereafter delete this message from your
> system. You are hereby notified that any disclosure, copying,
> dissemination, distribution or forwarding of this message, or the taking
> of any action based on it, is strictly prohibited. If you have received
> this e-mail in error, please notify us immediately by e-mail
> mailto:lawraf at rafael.co.il and completely delete or destroy any and all
> electronic or other copies of the original message and any attachments
> thereof.
> **************************************************************************
> ********************


More information about the gdal-dev mailing list