Re: [gdal-dev] GDAL 2.1.0 build error (32 bit, Mac)

2016-08-24 Thread Even Rouault
On Wednesday 24 August 2016 16:00:02 Calogero Mauceri wrote: > Hi all, > I'm trying to build GDAL 2.1.0 in 32 bit on Mac OS X. > I set the following environment variables > > export CFLAGS="-arch i386" > export CXXFLAGS="-arch i386" > export CPPFLAGS="-arch i386" > export LDFLAGS="-arch i386" > >

Re: [gdal-dev] No way to set natural block size ?

2016-08-24 Thread Even Rouault
On Wednesday 24 August 2016 15:09:15 BRUNEL Samuel wrote: > OK, It's only possible to set "natural" block size with options of > GDALDataset::AddBand() if the driver supports "natural" block size, like > "GTiff" driver. There are actualy very vew drivers that actually support the AddBand() method

[gdal-dev] Preserve Source Raster Resolution When Merging

2016-08-24 Thread Sam Wilson
Hi, I’m attempting to merge (or maybe the proper term is mosaic) overlapping raster datasets of varying resolutions. I’d like to have the higher resolution datasets override the lower resolution datasets where available. I’ve been able to get close using various methods i.e. gdal_merge.py or by

[gdal-dev] GDAL 2.1.0 build error (32 bit, Mac)

2016-08-24 Thread Calogero Mauceri
Hi all, I'm trying to build GDAL 2.1.0 in 32 bit on Mac OS X. I set the following environment variables export CFLAGS="-arch i386" export CXXFLAGS="-arch i386" export CPPFLAGS="-arch i386" export LDFLAGS="-arch i386" and then execute ./configure The build stops with the following error /bin/s

Re: [gdal-dev] No way to set natural block size ?

2016-08-24 Thread BRUNEL Samuel
OK, It's only possible to set "natural" block size with options of GDALDataset::AddBand() if the driver supports "natural" block size, like "GTiff" driver. Thank you very much, Samuel Tim Keitt a écrit : It is set at the time of dataset creation and cannot be changed without creating a new

Re: [gdal-dev] No way to set natural block size ?

2016-08-24 Thread Tim Keitt
It is set at the time of dataset creation and cannot be changed without creating a new dataset. Check which drivers allow you to set a tiled layout on disk. THK http://www.keittlab.org/ On Wed, Aug 24, 2016 at 6:44 AM, BRUNEL Samuel < samuel.bru...@thalesgroup.com> wrote: > Hi, > > It's easy to

[gdal-dev] No way to set natural block size ?

2016-08-24 Thread BRUNEL Samuel
Hi, It's easy to fetch the "natural" block size of a band with "void GDALRasterBand::GetBlockSize(int *pnXSize, int *pnYSize)" but I don't understand how pnXSize and pnYsize are set in gdal. I'm using gdal 1.11.4 Anyone know the answer ? Best regards, Samuel __