Re: [gdal-dev] GDALWarpOperation.ChunkAndWarpImage on source without CRS

2011-03-09 Thread Radim Blazek
Hi, thank you a lot for your help and recommendations. The problem seems to be in GDALCreateGenImgProjTransformer2 in the block which begins on line 1072 (alg/gdaltransformer.cpp) current trunk: else if( (pszMethod == NULL || EQUAL(pszMethod,"GEOTRANSFORM")) && GDALGetGeoTransform

Re: [gdal-dev] GDALWarpOperation.ChunkAndWarpImage on source without CRS

2011-03-09 Thread Even Rouault
Le mercredi 09 mars 2011 12:25:47, Radim Blazek a écrit : Radim, I don't see anything obviously wrong in your code, but the warping API is admitedly quite tricky to use. The closest code in GDAL that you could take insipiration from is perhaps GDALReprojectImage() in alg/gdalwarper.cpp that does

[gdal-dev] GDALWarpOperation.ChunkAndWarpImage on source without CRS

2011-03-09 Thread Radim Blazek
Hi, I am using GDALWarpOperation.ChunkAndWarpImage to read data, everything works well except when a source dataset does not have a CRS defined. Then it crashes with #0 GDALGenImgProjTransform (pTransformArg=0x0, bDstToSrc=1, nPointCount=84, padfX=0xa1093f0, padfY=0xa109690, padfZ=0xa109930,