GDAL_CREATE(1) | GDAL | GDAL_CREATE(1) |
gdal_create - Create a raster file (without source dataset)
gdal_create [--help-general]
[-of format]
[-outsize xsize ysize]
[-bands count]
[-burn value]*
[-ot {Byte/Int16/UInt16/UInt32/Int32/UInt64/Int64/Float32/Float64/
CInt16/CInt32/CFloat32/CFloat64}] [-strict]
[-a_srs srs_def] [-a_ullr ulx uly lrx lry] [-a_nodata value]
[-mo "META-TAG=VALUE"]* [-q]
[-co "NAME=VALUE"]*
[-if input_dataset]
out_dataset
The gdal_create utility can be used to initialize a new raster file, from its dimensions, band count and set various parameters, such as CRS, geotransform, nodata value, metadata. It can be used also in special cases, like creating a PDF file from a XML composition file.
The creation options available vary by format driver, and some simple formats have no creation options at all. A list of options supported for a format can be listed with the --formats command line option but the documentation for the format is the definitive source of information on driver creation options. See Raster drivers format specific documentation for legal creation options for each format.
Name of GDAL input dataset that serves as a template for default values of options -outsize, -bands, -ot, -a_srs, -a_ullr and -a_nodata. Note that the pixel values will not be copied.
gdal_create -outsize 20 20 -a_srs EPSG:4326 -a_ullr 2 50 3 49 -burn 10 out.tif
gdal_create -co COMPOSITION_FILE=composition.xml out.pdf
gdal_create -if prototype.tif output.tif
Even Rouault <even.rouault@spatialys.com>
1998-2023
January 2, 2023 |