<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 08.03.0213.000">
<TITLE>Re: [gdal-dev] gdalwarp utility</TITLE>
</HEAD>
<BODY><user><font color="#1f497d">Even<br>that's a nice trick to know. I wasn't aware of this<br>Thanks<br>Yehiyam <br><br>Sent from my mobile<br></font><font color="#000000"><br><br>-----------------------------<br>From:   "Even Rouault" <even.rouault@mines-paris.org><br>Subject: Re: [gdal-dev] gdalwarp utility<br>Date:          22 יולי 2012 20:34<br><br></font></user>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Le dimanche 22 juillet 2012 16:28:48, Livneh Yehiyam a écrit :<BR>
> Hi<BR>
> I've come upon a limitation of the gdalwarp utility under windows. When<BR>
> creating a mosaic from a large number of files from the command line, I<BR>
> ran into the limit of the command line length in windows (about 8000<BR>
> characters). I added the functionality of reading the source files from a<BR>
> txt file (similar to gdalbuildvrt -input_file_list option) to gdalwarp. I<BR>
> think it could benefit other users, and the symmetry of the API to add<BR>
> this to the official version.<BR>
><BR>
> A patch against trunk is included.<BR>
<BR>
Actually this is not needed (and there was not a real reason for -<BR>
input_file_list to exist in gdalbuildvrt too). All GDAL/OGR utilities have a<BR>
"--optfile filename" (note the double dash before optfile) option that uses the<BR>
lines of filename as arguments of the utility.<BR>
<BR>
See :<BR>
<BR>
$ gdalinfo --help-general<BR>
Generic GDAL utility command options:<BR>
  --version: report version of GDAL in use.<BR>
  --license: report GDAL license info.<BR>
  --formats: report all configured format drivers.<BR>
  --format [format]: details of one format.<BR>
  --optfile filename: expand an option file into the argument list.<BR>
  --config key value: set system configuration option.<BR>
  --debug [on/off/value]: set debug level.<BR>
  --pause: wait for user input, time to attach debugger<BR>
  --locale [locale]: install locale for debugging (ie. en_US.UTF-8)<BR>
  --help-general: report detailed help on general options.<BR>
<BR>
<BR>
So you should be able to run :<BR>
<BR>
gdalwarp --optfile text_file_with_src_files.txt target.tif<BR>
<BR>
><BR>
> Yehiyam Livneh<BR>
><BR>
><BR>
> ***************************************************************************<BR>
> ******************* This message (including any attachments) issued by<BR>
> RAFAEL- ADVANCED DEFENSE SYSTEMS LTD. (hereinafter "RAFAEL") contains<BR>
> confidential information intended for a specific individual and purpose,<BR>
> may constitute information that is privileged or confidential or otherwise<BR>
> protected from disclosure. If you are not the intended recipient, you<BR>
> should contact us immediately and thereafter delete this message from your<BR>
> system. You are hereby notified that any disclosure, copying,<BR>
> dissemination, distribution or forwarding of this message, or the taking<BR>
> of any action based on it, is strictly prohibited. If you have received<BR>
> this e-mail in error, please notify us immediately by e-mail<BR>
> <A HREF="mailto:lawraf@rafael.co.il">mailto:lawraf@rafael.co.il</A> and completely delete or destroy any and all<BR>
> electronic or other copies of the original message and any attachments<BR>
> thereof.<BR>
> **************************************************************************<BR>
> ********************<BR>
<BR>
</FONT>
</P>

<user><font color="#1f497d"></font></user>
<HR><Font face=arial size=2 color=black><I>
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@rafael.co.il and completely delete or destroy any and all 
electronic or other copies of the original message and any attachments thereof.
</font><HR>
</BODY>
</HTML>