Even Rouault a écrit : 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 (that is adding a new band to an existing dataset). And GTiff doesn't support it. In the GeoTIFF case, you can actually specify the block size at Create() or CreateCopy() time with TILED=YES/NO and BLOCKXSIZE/BLOCKYSIZE creation options. OK, Thank you. > 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 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<mailto:samuel.bru...@thalesgroup.com><mailto:samuel.bru...@thalesgroup.com>> > wrote: 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 > > > > _______________________________________________ > gdal-dev mailing list > gdal-dev@lists.osgeo.org<mailto:gdal-dev@lists.osgeo.org><mailto:gdal-dev@lists.osgeo.org> > http://lists.osgeo.org/mailman/listinfo/gdal-dev > > -- Spatialys - Geospatial professional services http://www.spatialys.com
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev