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

Jan Hartmann j.l.h.hartmann at uva.nl
Fri Feb 19 06:08:55 EST 2010



On 19-2-2010 11:46, Manuel Massing wrote:
> 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?
>
>
>    
Thanks Miguel, I didn't know that you could warp with gcp's without 
creating an intermediate gcp-raster. I've often been wondering too why 
there is no -gcp option in gdalwarp.

Jan


More information about the gdal-dev mailing list