<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>Tiled geotiffs and blocksize</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>-----BEGIN PGP SIGNED MESSAGE-----<BR>
Hash: SHA1<BR>
<BR>
Hi all,<BR>
<BR>
I’m trying to save geotiff rasters as tiled with custom blocksize. I'm using the<BR>
python interface for this.<BR>
<BR>
Hence I use the following options:<BR>
options = [&quot;TILED = YES&quot;, &quot;BLOCKXSIZE = 128&quot;, &quot;BLOCKYSIZE = 128&quot;]<BR>
<BR>
that I then pass on to the raster creation:<BR>
dst_ds = raster.Create( filename,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.width,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.height,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; gdal.GDT_Byte,<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; options)<BR>
<BR>
The code does not create any error and a readable tif is generated.<BR>
However, I cannot see using tiffdump or tiffinfo any information on the tiling:<BR>
<BR>
TIFF Directory at offset 0x6fdf5a (7331674)<BR>
&nbsp; Image Width: 2560 Image Length: 2048<BR>
&nbsp; Bits/Sample: 8<BR>
&nbsp; Sample Format: unsigned integer<BR>
&nbsp; Compression Scheme: AdobeDeflate<BR>
&nbsp; Photometric Interpretation: RGB color<BR>
&nbsp; Samples/Pixel: 3<BR>
&nbsp; Rows/Strip: 1<BR>
&nbsp; Planar Configuration: single image plane<BR>
&nbsp; DateTime: 2010:02:15 07:30:00<BR>
&nbsp; Tag 33550: 3000.000000,3000.000000,0.000000<BR>
&nbsp; Tag 33922: 0.000000,0.000000,0.000000,-3780000.000000,-1500000.000000,0.000000<BR>
&nbsp; Tag 34735:<BR>
1,1,0,5,1024,0,1,2,1025,0,1,1,2048,0,1,4326,2049,34737,7,0,2054,0,1,9102<BR>
&nbsp; Tag 34737: WGS 84|<BR>
<BR>
Hence my questions:<BR>
- - How do I check that the resulting tif image is tiled ?<BR>
- - Do I need to specify TIFFTAG_TILELENGTH and TIFFTAG_TILEWIDTH ?<BR>
<BR>
<BR>
Thanks !<BR>
Martin<BR>
-----BEGIN PGP SIGNATURE-----<BR>
Version: GnuPG v1.4.9 (GNU/Linux)<BR>
Comment: Using GnuPG with Fedora - <A HREF="http://enigmail.mozdev.org/">http://enigmail.mozdev.org/</A><BR>
<BR>
iQEcBAEBAgAGBQJLemTlAAoJEBdvyODiyJI4X3wH/AhvD8UuYPZ3Rg8TmydYSvoI<BR>
eCwrbOYVZTogdR2w9H9i8wVRMJdzlZSMKUyQ6eiXgRR3NdvDmS4pXKQarFRmBnUS<BR>
zyVgUaJDNHutmMZBJtmwGXLuPYG5qgGg2E7FSMzNt5FKqoFWoz9R1HI5GKjDJOVf<BR>
FS1XWtK6x1EqbNob0n889rzPkeTvKRlpOTZpTY/1rhLGlEdDxRECsP9IKKwnd5yD<BR>
vg9gojaEp6V5zJGpwyvxaLPnGBc9rHu5bQlj2MIQ3D0vvHh6IF8fOVPCgTyHSVpm<BR>
yjZyViadq/OV8akwlnx481mOuyVoL+MSbL9mZpYrRb/vA6VeSIKk239aMB+c7iY=<BR>
=OhoT<BR>
-----END PGP SIGNATURE-----<BR>
</FONT>
</P>

</BODY>
</HTML>