Skip to content
Jean-Denis Giguère edited this page Aug 6, 2020 · 2 revisions

Geotrellis operations are much faster on a tiled GeoTiff.

Check if a GeoTiff is tiled

You can check if your GeoTiff is tiled with the following command:

gdalinfo in.tiff

In the description of the Band, you will find Block=256x256 or something similar which is smaller than the complete image size.

See:

Driver: GTiff/GeoTIFF
Files: do_s13_7771_13.2013_tiled.tif
Size is 5000, 5000
Coordinate System is:
(omitted part here...)
Image Structure Metadata:
  INTERLEAVE=PIXEL
(omitted part here...)
Band 1 Block=256x256 Type=Byte, ColorInterp=Red
Band 2 Block=256x256 Type=Byte, ColorInterp=Green
Band 3 Block=256x256 Type=Byte, ColorInterp=Blue
Band 4 Block=256x256 Type=Byte, ColorInterp=Undefined

Tile a GeoTiff

You can tile a GeoTiff with the following command:

gdal_translate -of GTiff -co "TILED=YES" in.tiff out.tiff

Reference

https://gdal.org/programs/gdalinfo.html

https://gdal.org/programs/gdal_translate.html