Written and maintained by CASRAI Editorial Board
Published
On this page
A GeoTIFF is a TIFF raster file that carries georeferencing metadata, so each pixel can be placed on the Earth’s surface. Researchers meet it as the default container for elevation models, land-cover maps, satellite scenes and gridded population data, for example from OpenTopography. This guide explains what the format stores, how the geotransform converts pixel positions to map coordinates (with the arithmetic worked through), which tags and keys matter, and how to cite the standard.
What is a GeoTIFF? Definition
GeoTIFF is the name for a TIFF 6.0 file that stores georeferencing information in a set of reserved TIFF tags. The Open Geospatial Consortium (OGC) standard OGC 19-008r4, GeoTIFF Standard version 1.1, approved 2019-09-10 and published 2019-09-14, formalizes the earlier community GeoTIFF specification (version 1.0, 2000) and defines how those tags describe the coordinate reference system and the position of the raster. Version 1.1 is a minor revision aligned with EPSG practice, and it is the version recommended for new files. The pixel data themselves are ordinary TIFF image data; the extra tags are what turn an image into a map layer.
GeoTIFF vs TIFF
A plain TIFF holds pixel values only. A GeoTIFF holds the same pixel values plus the tags that say where the grid sits and which coordinate reference system it uses, so GIS software can overlay it on other layers without a separate file.
GeoTIFF vs Cloud Optimized GeoTIFF (COG)
A COG is a GeoTIFF organized so that parts of it can be read efficiently. In GDAL it is written by a separate driver (the COG driver) from the standard GTiff driver, and the GTiff driver stripes the file by default rather than tiling it.
The geotransform: how pixels map to coordinates
GeoTIFF stores positioning with one tiepoint plus pixel size, a full transformation matrix, or a list of ground control points. GDAL exposes the first two as a six-number geotransform, GT(0) to GT(5), and defines the mapping as:
- Xgeo = GT(0) + Xpixel × GT(1) + Yline × GT(2)
- Ygeo = GT(3) + Xpixel × GT(4) + Yline × GT(5)
| Symbol | Meaning |
|---|---|
| GT(0), GT(3) | Map X and Y of the upper-left corner of the upper-left pixel |
| GT(1) | Pixel width in map units |
| GT(5) | Pixel height in map units; negative for a north-up image |
| GT(2), GT(4) | Rotation terms, typically 0 for north-up images |
| Xpixel, Yline | Column and row position; (0, 0) is the top-left corner of the top-left pixel, so the centre of that pixel is (0.5, 0.5) |
In the file itself, the tiepoint and pixel size are held in ModelTiepointTag (33922, six values per tiepoint) and ModelPixelScaleTag (33550, three values); a rotated or sheared grid uses ModelTransformationTag (34264, a 4×4 matrix of 16 values). OGC 19-008r4 states that a positive ScaleX means model-space X coordinates increase as raster-space I indices increase.
Worked example with real numbers
Suppose a raster of 1,000 columns by 800 rows in a projected CRS with metre units has GT = (500000, 30, 0, 4000000, 0, -30). These values are chosen for illustration; the rotation terms are 0.
- Top-left corner of pixel (column 10, row 20): X = 500000 + 10 × 30 + 20 × 0 = 500300. Y = 4000000 + 10 × 0 + 20 × (−30) = 4000000 − 600 = 3999400.
- Centre of that pixel (add 0.5): column 10.5, row 20.5. X = 500000 + 10.5 × 30 = 500315. Y = 4000000 + 20.5 × (−30) = 4000000 − 615 = 3999385.
- Lower-right corner of the whole raster (column 1000, row 800): X = 500000 + 1000 × 30 = 530000. Y = 4000000 + 800 × (−30) = 3976000. The grid therefore covers 30,000 m east-west and 24,000 m north-south.
In Excel, with column in A2 and row in B2, the corner X is =500000+A2*30 and the corner Y is =4000000+B2*(-30); use A2+0.5 and B2+0.5 for the pixel centre.
Interpretation: the tags and keys that matter
| Item (OGC 19-008r4) | ID | What it tells you |
|---|---|---|
| GeoKeyDirectoryTag | 34735 | Mandatory; the directory of GeoKeys |
| GeoDoubleParamsTag / GeoAsciiParamsTag | 34736 / 34737 | Double-valued and text parameters referenced by keys (ASCII values end with “|”) |
| GTModelTypeGeoKey | 1024 | 1 projected, 2 geographic 2D, 3 geocentric, 32767 user-defined |
| GTRasterTypeGeoKey | 1025 | 1 PixelIsArea, 2 PixelIsPoint |
| ProjectedCRSGeoKey | 3072 | Projected CRS code (called ProjectedCSTypeGeoKey in 1.0) |
| GeodeticCRSGeoKey | 2048 | Geodetic CRS code (called GeographicTypeGeoKey in 1.0) |
| VerticalGeoKey | 4096 | Vertical CRS; new in 1.1 (with VerticalCitation 4097, VerticalDatum 4098, VerticalUnits 4099) |
GDAL creation options for sharing a GeoTIFF
The GDAL GTiff driver documentation lists these options, which affect file size and read speed but not the georeferencing.
| Option | Values and default |
|---|---|
| COMPRESS | JPEG, LZW, PACKBITS, DEFLATE, CCITTRLE, CCITTFAX3, CCITTFAX4, LZMA, ZSTD, LERC, LERC_DEFLATE, LERC_ZSTD, WEBP, JXL, NONE; default NONE |
| TILED | YES or NO; default NO (striped) |
| BLOCKXSIZE | Default 256; must be divisible by 16 |
| BIGTIFF | YES, NO, IF_NEEDED (default), IF_SAFER |
| PREDICTOR | 1, 2 or 3 for LZW, DEFLATE and ZSTD; default 1 |
| PROFILE | GDALGeoTIFF (default), GeoTIFF, BASELINE; BASELINE writes no GDAL or GeoTIFF tags |
Assumptions and common mistakes
- Treating the geotransform origin as a pixel centre. The origin is the corner of the upper-left pixel. Under PixelIsArea (GeoKey 1025 = 1) a value covers the whole cell; under PixelIsPoint (= 2) it represents a point, which is why GDAL stores it as a RasterPixelIsPoint flag. Mixing the two shifts a layer by half a pixel.
- Expecting a positive pixel height. For a north-up image GT(5) is negative; entering +30 flips the layer vertically in a hand-built calculation.
- Dropping the CRS. Georeferencing can also come from side files: GDAL falls back to world files (.tfw, .tifw, .tiffw, .wld) and .tab files, with a default source priority of PAM, INTERNAL, TABFILE, WORLDFILE, XML. World files hold no CRS definition, so keep the CRS inside the GeoTIFF when you deposit data.
- Writing a BASELINE profile and expecting a map layer. That profile omits the GeoTIFF tags.
- Ignoring rotation terms. GT(2) and GT(4) are usually 0, but if they are not, the simple width-times-columns arithmetic above no longer holds.
How to report and cite a GeoTIFF
When a methods section says data were supplied as GeoTIFF, name the standard version and the CRS. A reference to the standard (APA style):
Devys, E., Habermann, T., Heazel, C., Lott, R., and Rouault, E. (2019). OGC GeoTIFF standard (Version 1.1; OGC 19-008r4). Open Geospatial Consortium. https://docs.ogc.org/is/19-008r4/19-008r4.html
In the text, also report the CRS (for example its EPSG code), cell size with units, and whether the grid is PixelIsArea or PixelIsPoint. Cite the dataset itself separately, following your data-format and repository conventions.
How to read a GeoTIFF in Python, R or GDAL
These snippets read the metadata used above. In rasterio, the transform is an affine object whose coefficients correspond to GDAL’s GT(1), GT(2), GT(0), GT(4), GT(5), GT(3).
Python (rasterio):
import rasterio
with rasterio.open("dem.tif") as src:
print(src.crs, src.transform, src.width, src.height)
x, y = src.xy(20, 10) # centre of row 20, column 10
cx, cy = src.transform * (10, 20) # top-left corner of that pixel
R (terra):
library(terra)
r = rast("dem.tif")
crs(r); res(r); ext(r)
Command line (GDAL):
gdalinfo dem.tif
The gdalinfo output lists the coordinate system, origin, pixel size and corner coordinates. To check the arithmetic in the worked example against a real file, compare its origin and pixel size to your own calculation.
FAQ
What is a GeoTIFF file used for?
It stores raster data, such as elevation, imagery or gridded statistics, together with the information needed to place it on a map. Elevation products such as a digital elevation model are commonly distributed this way.
How do I open a GeoTIFF?
Use GIS software or a library that reads GDAL formats, such as rasterio or terra above, or run gdalinfo to inspect it.
What is the current GeoTIFF standard?
OGC GeoTIFF Standard 1.1 (OGC 19-008r4, 2019). It formalizes version 1.0 and is recommended for new files.
Is a GeoTIFF the same as a Cloud Optimized GeoTIFF?
No. A COG is a GeoTIFF with an internal organization for efficient partial reads, produced in GDAL by the separate COG driver.
Where is the CRS stored?
In the GeoKeys: ProjectedCRSGeoKey (3072) for projected systems and GeodeticCRSGeoKey (2048) for geographic ones, selected by GTModelTypeGeoKey (1024).
Sources
- Open Geospatial Consortium. OGC GeoTIFF Standard 1.1, OGC 19-008r4. https://docs.ogc.org/is/19-008r4/19-008r4.html (read 2026-11-12).
- GDAL documentation. GTiff driver. https://gdal.org/en/stable/drivers/raster/gtiff.html (read 2026-11-12).
- GDAL documentation. Geotransform tutorial. https://gdal.org/en/stable/tutorials/geotransforms_tut.html (read 2026-11-12).







