[Gdal-dev] gcp with gdal_translate

Nicol Hermann gdal at geoworld.de
Tue Jan 17 10:36:38 EST 2006


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
)

i get this error message:

Creating output file that is 0P x 3676L.
ERROR 1: Attempt to create 0x3676x3 TIFF file, but width, height and
bands must be positive.

How can i specify more than gcp's? Do i miss something conceptual?
Thanks for any hint
Nicol




More information about the Gdal-dev mailing list