Re: [gdal-dev] why do I get a floating point nodata value from a byte raster?

2014-09-01 Thread Richard Sharp
On Fri, Aug 29, 2014 at 10:34 AM, Even Rouault wrote: > Le jeudi 28 août 2014 23:32:38, Richard Sharp a écrit : > > I have a byte GTiff dataset that has a nodata value of 0 according to > QGIS. > > Well, I've just created such a file, and with QGIS 1.8, the GUI display > well > the -3.40282306073

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] Convert S57 to image with S52 rendering

2014-09-01 Thread s duclos
Storkur, I think that you should be fine with glib-2.0 (2.31) I'm on Ubuntu 14.04 witch have glib 2.40.0 and I just tried the target s52glx. Work fine here. But if you can't upgrade your glib then maybe the old way work for you Simple test would be to comment line S52.c:271 and add: static GSta

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

Re: [gdal-dev] Convert S57 to image with S52 rendering

2014-09-01 Thread Storkur
Sylvain, Thanks But i cant build s52 lib. I try make s52glx command, but it says S52.c:271: error: storage size of ‘_mp_mutex’ isn’t known I probably resolve all dependencies. -- View this message in context: http://osgeo-org.1560.x6.nabble.com/gdal-dev-Convert-S57-to-image-with-S52-rendering