[gdal-dev] GDAL Warp working intermittetently

Frank Warmerdam warmerdam at pobox.com
Mon May 26 16:41:23 EDT 2008


Christiaan Janssen wrote:
> I apologize if this has already been answered previously, but I am 
> trying to
> use the GDALWarp functionality and the process appears to be working only
> intermittently.  I am using the 1.5.0 build of GDAL.  The first time I try
> to use the warp functions when a project is opened, the results appear 
> to be
> correct.  If I subsequently run the warp again (using the same data) I have
> been getting erroneous results.  For the image warping
> (oOperation.ChunkAndWarpImage) the output is an all black image.  For the
> point warping (GDALTPSTransform) the result is extremely high values.  In
> both cases, if I set a breakpoint in the debugger post-operation, and then
> set the active statement to the beginning of the setup function, the 
> warping
> results are suddenly correct.
> 
> Does anyone have experience with this type of issue with the GDALWarp
> library?

Christiaan,

Is it possible you are suffering from the bug reported at:

   trac.osgeo.org/gdal/ticket/2300

This was not fixed till after 1.5.0. Reviewing the log it looks like it
was also fixed after 1.5.1 was released, so you would need to upgrade to
a 1.5 branch snapshot or the trunk snapshot from subversion.

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