[Gdal-dev] GCPs to geo transform

Frank Warmerdam warmerdam at pobox.com
Thu Feb 23 16:16:41 EST 2006


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.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list