[gdal-dev] Computing transformation matrix from set of points
Frank Warmerdam
warmerdam at pobox.com
Thu Jul 16 00:46:40 EDT 2009
ogr user wrote:
> Sorry to butt in with a question that must have been answered a few
> times before.
>
> I am looking for a solver (ready made or an algorithm to implement) to
> derive an affine transformation matrix for a given coordinate
> transformation based on a set of points with coordinates in each system.
Mike,
I think you are looking for:
int CPL_DLL CPL_STDCALL
GDALGCPsToGeoTransform( int nGCPCount, const GDAL_GCP *pasGCPs,
double *padfGeoTransform, int bApproxOK );
http://www.gdal.org/gdal_8h.html#e6bc0eeea40d1645fbd44d7431c8db07
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