[gdal-dev] gdal_translate with pixel size parameters?
Frank Warmerdam
warmerdam at p...
Fri Nov 9 14:33:07 EST 2001
tmitchell at l... wrote:
> Can I use gdal_translate to resample the image I am converting?
> Any suggestions?
Tyler,
You can use the -outsize parameter to control the size of the output file.
For instance:
gdal_translate -outsize 100 100 input.tif output.tif
will resample input.tif to a 100x100 image in output.tif. note that
nearest neighbour resampling is used (replication/decimation).
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at p...
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