[Freegis-list] Polynomial approximation of control points

Frank Warmerdam warmerdam at pobox.com
Mon Jun 16 17:43:46 CEST 2003


Ronan wrote:
> I’m looking for a C/C++ source code for a polynomial approximation of 
> control points.
> 
>  
> 
> Input : X Y LAT LON of control points.
> 
> Output : polynomial coefficients, any degree of polynomial (1, 2, 3…)
> 
> Can be used from projected coordinates (XY) to LAT / LON and back.
> 
>  
> 
> The purpuse is to georeference raster charts from a paper source.


Ronan,

I know that GRASS and GDAL have some level of support for polynomial based
warping of images.   The code in GDAL can be found in gdal/alg/gdal_crs.c.
I have had some robustness problems with it at 3rd order and I don't think
it does any higher orders.   The code can be used with the gdalwarp and
gdalwarptest utilities, but it isn't that easy to specify the control points
if they are not already contained and supported by the format driver.

I am interested in hearing if you find a better resources.

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 Freegis-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)