[gdal-dev] Tiled geotiffs and blocksize
Chaitanya kumar CH
chaitanya.ch at gmail.com
Tue Feb 16 05:35:38 EST 2010
Raspaud,
Try the options with no space before and after the '=' sign.
On Tue, Feb 16, 2010 at 2:57 PM, Raspaud Martin <martin.raspaud at smhi.se>wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all,
>
> I’m trying to save geotiff rasters as tiled with custom blocksize. I'm
> using the
> python interface for this.
>
> Hence I use the following options:
> options = ["TILED = YES", "BLOCKXSIZE = 128", "BLOCKYSIZE = 128"]
>
> that I then pass on to the raster creation:
> dst_ds = raster.Create( filename,
> self.width,
> self.height,
> 3,
> gdal.GDT_Byte,
> options)
>
> The code does not create any error and a readable tif is generated.
> However, I cannot see using tiffdump or tiffinfo any information on the
> tiling:
>
> TIFF Directory at offset 0x6fdf5a (7331674)
> Image Width: 2560 Image Length: 2048
> Bits/Sample: 8
> Sample Format: unsigned integer
> Compression Scheme: AdobeDeflate
> Photometric Interpretation: RGB color
> Samples/Pixel: 3
> Rows/Strip: 1
> Planar Configuration: single image plane
> DateTime: 2010:02:15 07:30:00
> Tag 33550: 3000.000000,3000.000000,0.000000
> Tag 33922:
> 0.000000,0.000000,0.000000,-3780000.000000,-1500000.000000,0.000000
> Tag 34735:
> 1,1,0,5,1024,0,1,2,1025,0,1,1,2048,0,1,4326,2049,34737,7,0,2054,0,1,9102
> Tag 34737: WGS 84|
>
> Hence my questions:
> - - How do I check that the resulting tif image is tiled ?
> - - Do I need to specify TIFFTAG_TILELENGTH and TIFFTAG_TILEWIDTH ?
>
>
> Thanks !
> Martin
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJLemTlAAoJEBdvyODiyJI4X3wH/AhvD8UuYPZ3Rg8TmydYSvoI
> eCwrbOYVZTogdR2w9H9i8wVRMJdzlZSMKUyQ6eiXgRR3NdvDmS4pXKQarFRmBnUS
> zyVgUaJDNHutmMZBJtmwGXLuPYG5qgGg2E7FSMzNt5FKqoFWoz9R1HI5GKjDJOVf
> FS1XWtK6x1EqbNob0n889rzPkeTvKRlpOTZpTY/1rhLGlEdDxRECsP9IKKwnd5yD
> vg9gojaEp6V5zJGpwyvxaLPnGBc9rHu5bQlj2MIQ3D0vvHh6IF8fOVPCgTyHSVpm
> yjZyViadq/OV8akwlnx481mOuyVoL+MSbL9mZpYrRb/vA6VeSIKk239aMB+c7iY=
> =OhoT
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
--
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9848167848
17.241582N 80.142635E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100216/e10c9257/attachment-0001.html
More information about the gdal-dev
mailing list