[Gdal-dev] gcp with gdal_translate

Frank Warmerdam warmerdam at pobox.com
Tue Jan 17 11:22:43 EST 2006


On 1/17/06, Nicol Hermann <gdal at geoworld.de> wrote:
> Hi list,
>
> me again.
> i would like to georeference a tif file with gdal_translate.
> therefor i use the following lines:
> gdal_translate pol.tif -gcp 1120 1696 29.65 -2.34 -gcp 2154 91
> 30.45-1.09 -gcp 2236 1784 30.57 -2.54  gcps.tif
> gdalwarp -tps gcps.tif warped.tif
>
> This works great.
> Whenever i add more than 3 gcp's (e.g.
>
> gdal_translate Ruanda_pol.tif -gcp 1120 1696 29.65 -2.34 -gcp 2154 91
> 30.45-1.09  -gcp 332 2208  29.02 -2.74 -gcp 1504 1680 29.92 -2.65
> gcps.tif
> )

Nicol,

For my test file, the above worked ok as long as I put a space
before the -1.09.  I have no idea how you could be getting
the results you are.

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