Skip to main content
3 of 6
naming
Vince
  • 20.3k
  • 16
  • 48
  • 65

Generate an empty large raster using GDAL?

Using GDAL, how can I simply create an empty single band raster? I can't seem to find out how. I know in PostGIS you can create a new table with a 'raster' column type, then insert a band into it. However I'm looking for a slick, GDAL solution (or another efficient non-PostGIS solution).

What I'm looking to create is a raster (GeoTIFF) with these settings:

format: -of GTiff

type: -ot UInt16 (16 bit unsigned integer)

cell resolution: -tr 5 5 (5x5m)

nodata: -a_nodata 255

SRID: 27700

extent: -te 0 0 680000 1240000 (rectangular extent of Great Britain)

Theo F
  • 1.9k
  • 14
  • 35