[gdal-dev] GDALWarpOperation::WarpRegionToBuffer() doesn't write in my buffer

bosow at club-internet.fr bosow at club-internet.fr
Mon Nov 22 06:26:49 EST 2010

Thanks for your answer Frank. I've stepped through the code (GDALWarpOperation and GDALWarpKernel) but can't find the origin of the mistake...
So I've made a small package : http://bosow.free.fr/bundle.rar
There might be small mistakes since I replaced my QStrings with char* so that you can compile it easier, but I didn't try to compile it, but it should be ok... Let me know if you have any problems so that you don't waste too much time.

Thanks again, I appreciate your help since I'm really stuck right now...

Sincerely yours,
Matthieu Castanier


Message du : 19/11/2010
De : "Frank Warmerdam " <warmerdam at pobox.com>
A : bosow at club-internet.fr
Copie à : 
Sujet : Re: [gdal-dev] GDALWarpOperation::WarpRegionToBuffer() doesn't write in my buffer

bosow at club-internet.fr wrote:
> Hi,
> I am trying to write a program which is supposed to read geotif files, 
> extract the values I need, then export them in a homemade format.
> As my geotif files are on several different UTM zones, I have to change 
> projections so that all the files I open have the same projection as the 
> "main tile" (central tile).
> So i'm using WarpRegionToBuffer from GDALWarpOperation class with a null 
> hDstDS, which is supposed to work... but my buffer remains filed with 
> the default values I assigned to him (-999), even though 
> WarpRegionToBuffer returns CE_None...

I don't see an obvious problem.  If you can't make progress, perhaps by
stepping through the code, then bundle up a minimal C++ program and input
file demonstrating the problem.  Something I can easily compile here and
run with a minimum of fuss.

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20101122/fae37b27/attachment.html

More information about the gdal-dev mailing list