[FWTools] Gdal_translate "Too many command options"
Frank Warmerdam
warmerdam at pobox.com
Fri Oct 12 23:19:13 EDT 2007
Brotzman, Karl D. wrote:
> I’m a new user! I’m sure I’m doing something odd, but I sure don’t see it.
>
>
>
> I feed the following command string to my FWTools Shell on a PC running XP
>
>
>
> */gdal_translate –ot Float32 –of Gtiff –co “COMPRESS=LZ77” –a_srs
> “WGS84” bathy.asc bathy.tif/*
>
>
>
> It tells me “Too many command options.” Shows me Usage, and the format
> drivers. I’ve tried eliminating commands and options one at a time, and
> in different orders. For example, I eliminate the –co “COMPRESS=LZ77”.
> I get results when I’ve paired down my command string to just
>
>
>
> */gdal_translate bathy.asc bathy.tif/*
>
> */ /*
>
> I did start out with gdalwin32exe142.zip yesterday, but received the
> same results. I deleted that executable, and the environment variable
> and modification to the %PATH for it. I’m sure I’m executing FWTools
> because the Console Window says “FWTools Shell”, and the prompt is
> C:\Program Files\FWTools1.3.7>
Karl,
I'm not sure myself. My I suspect you are using "directional quotes"
instead of plain double quotes. At least you seem to use special
quote characters in the example you cut and pasted into your email.
As mentioned, the COMPRESS argument should be LZW, but I can't see
how that error would cause the problem you see.
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 | President OSGeo, http://osgeo.org
More information about the FWTools
mailing list