[gdal-dev] Re: Add GCP's to a file

Manuel Massing m.massing at warped-space.de
Fri Feb 19 05:46:08 EST 2010


Hi,

> Gdal_translation has on option
>  [-gcp pixel line easting northing [elevation]]*

this should also work using the VRT output format, which has the advantage 
that the raster data doesn't need to be written to an intermediate file (VRT 
"wraps" the original data). 
E.g.:
gdal_translate [-gcp pixel line easting northing [elevation]]* -of VRT <input> 
<output> 

You can then gdalwarp the resulting vrt file. 

Incidentally, I wonder if there is a strong reason for not implementing a gcp 
option in gdalwarp itself?

Regards,

	Manuel



More information about the gdal-dev mailing list