[Gdal-dev] adding gcp's
Bart van den Eijnden
BEN at Syncera-ITSolutions.NL
Tue Aug 23 11:26:17 EDT 2005
Hi list,
I am trying to create a geotiff and add ground control points to it, using the following command:
gdal_translate ondergrond.tif ondergrond_new.tif -gcp 0 0 63978 458335 -gcp 1290 1619 85630 438699
When I do gdalinfo, the gcp's are added, but the corner info is not using it:
D:\ms4w\apps\stragisweb\htdocs\sites\westland\data\basis\geo>gdalinfo ondergrond_new.tif
Driver: GTiff/GeoTIFF
Size is 1290, 1169
Coordinate System is `'
GCP Projection =
GCP[ 0]: Id=1, Info=
(0,0) -> (63978,458335,0)
GCP[ 1]: Id=2, Info=
(1290,1619) -> (85630,438699,0)
Metadata:
TIFFTAG_SOFTWARE=IrfanView
TIFFTAG_XRESOLUTION=150
TIFFTAG_YRESOLUTION=150
TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch)
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 1169.0)
Upper Right ( 1290.0, 0.0)
Lower Right ( 1290.0, 1169.0)
Center ( 645.0, 584.5)
Band 1 Block=1290x6 Type=Byte, ColorInterp=Red
Band 2 Block=1290x6 Type=Byte, ColorInterp=Green
Band 3 Block=1290x6 Type=Byte, ColorInterp=Blue
What am I doing wrong?
Thanks in advance.
Best regards,
Bart
Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG DELFT
tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl
More information about the Gdal-dev
mailing list