[gdal-dev] gdalwarp for interpolation of non georeferenced images?

Frank Warmerdam warmerdam at pobox.com
Tue Feb 5 12:11:46 EST 2008


WolfgangZ wrote:
> Hi,
> 
> is it possible to use gdalwarp to interpolate non georeferenced images? 
> I thought of something like "gdalwarp -tr 0.2 0.2 -r cubic in.tif 
> out.tif" but all I get is:
> 
> 
> ERROR 1: Unable to compute a transformation between pixel/line
> and georeferenced coordinates for test1.tif.
> There is no affine transformation and no GCPs.

Wolfgang,

It turns out this is not directly possible, but you can create a
worldfile for the input with dummy georeferencing quite easily and
then work with that.

eg.
in.tfw:
1
0
0
-1
0
0

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    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list