[Gdal-dev] GDAL_TRANSLATE and PNM format
dron at ak4719.spb.edu
Sun Mar 9 12:51:54 EST 2003
On Sun, Mar 09, 2003 at 11:52:51AM -0500, Jim Julian wrote:
> My original purpose in downloading the current CVS was to verify an
> error in gdal_translate.
> Given the following command line:
> "gdal_translate n36w082.bil n36w082.pnm"
> A geotiff is written rather than a PGM or PPM file. I tried using the PGM
> extension as well.
You should explicitly specify output file format with -of option. GTiff
format used by default. gdal_translate don't recognizes output file
format by extension. Try this:
gdal_translate -of PNM n36w082.bil n36w082.pnm
Andrey V. Kiselev
Home phone: +7 812 5274898 ICQ# 26871517
More information about the Gdal-dev