<html>
<head>
</head>
<body text="#000066" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Even Rouault a écrit :<br>
</div>
<blockquote cite="mid:1593102.zWQGQIbiN4@even-n550jk" type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="MS Exchange Server version
08.03.0392.000">
<title>Re: [gdal-dev] No way to set natural block size ?</title>
<!-- Converted from text/plain format -->
<p><font size="2">On Wednesday 24 August 2016 15:09:15 BRUNEL
Samuel wrote:<br>
> OK, It's only possible to set "natural" block size with
options of<br>
> GDALDataset::AddBand() if the driver supports "natural"
block size, like<br>
> "GTiff" driver.<br>
<br>
There are actualy very vew drivers that actually support the
AddBand() method<br>
(that is adding a new band to an existing dataset). And GTiff
doesn't support<br>
it. In the GeoTIFF case, you can actually specify the block
size at Create()<br>
or CreateCopy() time with TILED=YES/NO and
BLOCKXSIZE/BLOCKYSIZE creation<br>
options.<br>
<br>
</font></p>
</blockquote>
<font size="2">OK, Thank <font size="2">you.<br>
<br>
</font></font>
<blockquote cite="mid:1593102.zWQGQIbiN4@even-n550jk" type="cite">
<p><font size="2">
<br>
> Thank you very much,<br>
><br>
> Samuel<br>
><br>
><br>
> Tim Keitt a écrit :<br>
> It is set at the time of dataset creation and cannot be
changed without<br>
> creating a new dataset. Check which drivers allow you to
set a tiled layout<br>
> on disk.<br>
<br>
> THK<br>
><br>
> <a moz-do-not-send="true"
href="http://www.keittlab.org/">http://www.keittlab.org/</a><br>
><br>
> On Wed, Aug 24, 2016 at 6:44 AM, BRUNEL Samuel<br>
> <<a class="moz-txt-link-abbreviated" href="mailto:samuel.brunel@thalesgroup.com">samuel.brunel@thalesgroup.com</a><<a
moz-do-not-send="true"
href="mailto:samuel.brunel@thalesgroup.com">mailto:samuel.brunel@thalesgroup.com</a>>><br>
> wrote:<br>
Hi,<br>
><br>
> It's easy to fetch the "natural" block size of a band
with "void<br>
> GDALRasterBand::GetBlockSize(int *pnXSize, int *pnYSize)"
but I don't<br>
> understand how pnXSize and pnYsize are set in gdal.<br>
<br>
> I'm using gdal 1.11.4<br>
><br>
> Anyone know the answer ?<br>
><br>
><br>
> Best regards,<br>
><br>
> Samuel<br>
><br>
><br>
><br>
> _______________________________________________<br>
> gdal-dev mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><<a moz-do-not-send="true"
href="mailto:gdal-dev@lists.osgeo.org">mailto:gdal-dev@lists.osgeo.org</a>><br>
> <a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/gdal-dev">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
><br>
><br>
<br>
--<br>
Spatialys - Geospatial professional services<br>
<a moz-do-not-send="true" href="http://www.spatialys.com">http://www.spatialys.com</a><br>
</font>
</p>
</blockquote>
<br>
</body>
</html>