[Gdal-dev] Gdal_translate BUG?
Sampson, David
dsampson at NRCan.gc.ca
Tue Nov 28 08:09:50 EST 2006
Hey Folks,
I have been having trouble using the -outsize option in gdal translate.
I have been told this is my solution for downsizing. The following is
what I had to do in order for it to work.
First: Translate using GCP's
=====================
gdal_translate -gcp 378.19 196.43 -76.777261 45.67899 -gcp 6013.13
282.36 -76.744739 45.678655 -gcp 5890.36 7565.55 -76.745361 45.649344
-gcp 290.14 7492.18 -76.777866 45.649679 A38_001.tif tiA38_001.tif
Second: Warp to set projecton info and set GCP's to corners
===============================================
gdalwarp -s_srs epsg:4326 -t_srs epsg:4326 tiA38_001.tif woA38_001.tif
Third: translate again to set all image criteria including -outsize.
==============================================
gdal_translate -scale -ot byte -outsize 67% 67% -mo "Area_or_Point =
Area" woA38_001.tif oA38_001.tif
Is it a bug that I have to split up the gdal_translate processes?
The ideal: Everything on one line (DOES NOT WORK)
========================================
gdal_translate -gcp 378.19 196.43 -76.777261 45.67899 -gcp 6013.13
282.36 -76.744739 45.678655 -gcp 5890.36 7565.55 -76.745361 45.649344
-gcp 290.14 7492.18 -76.777866 45.649679 -scale -ot byte -outsize 67%
67% -mo "Area_or_Point = Area" -a_srs epsg:4326 A38_001.tif
tiA38_001.tif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20061128/80d93804/attachment.html
More information about the Gdal-dev
mailing list