[Gdal-dev] gdal_merge fails to merge more than 4 input files

Frank Warmerdam fwarmerdam at gmail.com
Thu Feb 3 10:51:51 EST 2005


On Thu, 03 Feb 2005 09:27:50 +0100, Julien Demaria <dem at acri-st.fr> wrote:
> Frank,
> 
> the next DOS code passes all command line arguments to the python script :
> 
> rem Parse arguments
> set args=
> :loopargs
> if !%1==! goto launch
> set args=%args% %1
> shift
> goto loopargs
> :launch
> 
> python "%FWTOOLS_DIR%\pymod\gdal_merge.py" %args%

Julien,

Neat! I didn't realize something like that could be done in a BAT file.
Gillian also mentioned to me that %* means all arguments, so I have
modified all the bat files in the FWTools tree to just use %* instead
of the long list of %1 %2 etc.   This will appear in the next FWTools 
release.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the Gdal-dev mailing list