[Gdal-dev] GCPs to geo transform

Antoine Hue tonio_73 at tiscali.fr
Mon May 8 14:40:06 EDT 2006


Le 23 févr. 06, à 22:16, Frank Warmerdam a écrit :

> Antoine Hue wrote:
>> Hello,
>> I was wondering if it is possible to compute the geo transform given 
>> a set of GCPs without warping the image?
>> That's what is being done in the osgTerrain  library I am using, it 
>> is warping the image to a geotiff as soon as there are GCPs without 
>> checking if the source and destination CS are the same.
>> Thanks a lot for the GDAL, it is doing a lot for me.
>
> Antoine,
>
> Perhaps the GDALGCPsToGeoTransform() function would be of some use to 
> you.
> It computes an approximate geotransform from a set of GCPs.
>
> However, there is no way to utilize this from the existing commandline
> tools.  So it would only be useful if you were scripting or 
> programming.

I eventually implemented the use of the method. It works fine in my app.

Thank you very much for your support.

Antoine





More information about the Gdal-dev mailing list