Re: [gdal-dev] Identity affine handling in GDALCreateGenImgProjTransformer2

2014-09-02 Thread Sandro Santilli
On Mon, Sep 01, 2014 at 05:56:40PM +0200, Even Rouault wrote: > Selon Sandro Santilli : > > I did make a fresh rebuild in gdal/ dir. > > And still crashing ? Where does it crash ? TEST: vrt_read_5 ... Segmentation fault (core dumped) Core was generated by `python run_all.py'. Program terminat

Re: [gdal-dev] Identity affine handling in GDALCreateGenImgProjTransformer2

2014-09-01 Thread Even Rouault
Selon Sandro Santilli : > On Mon, Sep 01, 2014 at 05:00:24PM +0200, Even Rouault wrote: > > Selon Sandro Santilli : > > > > Uhm, locally I get a segfault when running the testsuite, with > > > trunk untouched (autotest$ python run_all.py) > > > > They should run. If you svn updated a previous work

Re: [gdal-dev] Identity affine handling in GDALCreateGenImgProjTransformer2

2014-09-01 Thread Sandro Santilli
On Mon, Sep 01, 2014 at 05:00:24PM +0200, Even Rouault wrote: > Selon Sandro Santilli : > > Uhm, locally I get a segfault when running the testsuite, with > > trunk untouched (autotest$ python run_all.py) > > They should run. If you svn updated a previous working copy, try make clean && > make T

Re: [gdal-dev] Identity affine handling in GDALCreateGenImgProjTransformer2

2014-09-01 Thread Even Rouault
Selon Sandro Santilli : > On Mon, Sep 01, 2014 at 03:45:23PM +0200, Even Rouault wrote: > > > > Basically it looks like the code doesn't not trust the return code > > > from the driver's GDALGetGeoTransform() call, but rather look at the > > > returned matrix to decide if the raster did have or no

Re: [gdal-dev] Identity affine handling in GDALCreateGenImgProjTransformer2

2014-09-01 Thread Sandro Santilli
On Mon, Sep 01, 2014 at 03:45:23PM +0200, Even Rouault wrote: > > Basically it looks like the code doesn't not trust the return code > > from the driver's GDALGetGeoTransform() call, but rather look at the > > returned matrix to decide if the raster did have or not a an affine > > transformation.

Re: [gdal-dev] Identity affine handling in GDALCreateGenImgProjTransformer2

2014-09-01 Thread Even Rouault
Hi Sandro > > Basically it looks like the code doesn't not trust the return code > from the driver's GDALGetGeoTransform() call, but rather look at the > returned matrix to decide if the raster did have or not a an affine > transformation. Yes, there are indeed various places where we don't trust

[gdal-dev] Identity affine handling in GDALCreateGenImgProjTransformer2

2014-09-01 Thread Sandro Santilli
Hi all, I'm trying to cleanup the PostGIS raster code handling raster warping and got suprised by the complex code used there to do what looks like being a workaround for a GDAL bug. The workaround adds some permutations to rasters with an affine transform of {0,1,0,0,0,-1}. Looking at the GDAL co