GDAL-RASTER-EDIT(1) GDAL GDAL-RASTER-EDIT(1) (NAME) gdal-raster-edit - 3.11. (SYNOPSIS) Usage: gdal raster edit [OPTIONS] Edit a raster dataset. Positional arguments: --dataset Dataset (to be updated in-place, unless --auxiliary) [required] [not available in pipelines] Common Options: -h, --help Display help message and exit --json-usage Display usage as JSON document and exit --config = Configuration option [may be repeated] -q, --quiet Quiet mode (no progress bar or warning message) [not available in pipelines] Options: --auxiliary Ask for an auxiliary .aux.xml file to be edited [not available in pipelines] -b, --band Active band (1-based index) --crs Override CRS (without reprojection) --bbox Bounding box as xmin,ymin,xmax,ymax --nodata Assign a specified nodata value to output bands ('none', numeric value, 'nan', 'inf', '-inf') --color-interpretation <[all|=] Set band color interpretation [may be repeated] --color-map Color map filename Mutually exclusive with --unset-color-table --scale <[=] Override band scale factor [may be repeated] --offset <[=] Override band offset constant [may be repeated] --metadata = Add/update dataset metadata item [may be repeated] --unset-color-table Unset color table on 1st band or the one specified with --band Mutually exclusive with --color-map --unset-metadata Remove dataset metadata item(s) [may be repeated] --unset-metadata-domain Remove dataset metadata domain(s) [may be repeated] --gcp Add ground control point, formatted as pixel,line,easting,northing[,elevation], or @filename [may be repeated] --stats Compute statistics, using all pixels Mutually exclusive with --approx-stats --approx-stats Compute statistics, using a subset of pixels Mutually exclusive with --stats --hist Compute histogram Advanced Options: --oo, --open-option = Open options [may be repeated] [not available in pipelines] (DESCRIPTION) gdal raster edit . gdal raster pipeline . (PROGRAM-SPECIFIC OPTIONS) --approx-stats . (overviews) . . : (pipeline) . --auxiliary . (PAM) .aux.xml . -b, --band 3.13. ( 1) : --color-map --unset-color-table. 1 . --bbox ,,, CRS . 'x' CRS CRS (easting) . 'y' CRS CRS (northing) . --color-map 3.13. --band . GDAL . : (Red) (Green) (Blue) ( 0 255). 0 65535 . : 0% 100% . . (255) . : ':'. GRASS RGB . : white black red green blue yellow magenta cyan aqua grey/gray orange brown purple/violet indigo. GMT .cpt ( COLOR_MODEL = RGB). : r.colors GRASS . ESRI HDR (.clr) . GDAL . : 3500 white 2500 235:220:175 50% 190 185 135 700 240 250 150 0 50 180 50 --crs CRS . OGRSpatialReference::SetFromUserInput() CRS EPSG ( EPSG:4296) CRS WKT ( ) PROJ.4 .prj WKT CRS. null none CRS . . --dataset --auxiliary . . --gcp 3.12. () (GCP) GCP . GCP "pixel,line,easting,northing" "pixel,line,easting,northing,elevation" . GCP --gcp . --gcp @ . column line x y id info z . --hist . : . --color-interpretation [all|=] 3.13. . . red green blue alpha gray undefined pan coastal rededge nir swir mwir lwir . : o all=: . o 1 . o = band 1 . --scale [=] 3.13. . . : o : . o 1 . o = band 1 . --offset [=] 3.13. . . : o : . o 1 . o = band 1 . --metadata = / . . --nodata nodata. null none nodata . --stats . --unset-color-table 3.13. --band . --unset-metadata () . . --unset-metadata-domain 3.12. () . . (STANDARD OPTIONS) --oo, --open-option = ( ). . (RETURN STATUS CODE) 0 ( ). (EXAMPLES) : ( ) CRS $ gdal raster edit --crs=EPSG:32632 my.tif : ( ) $ gdal raster edit --bbox=2,49,3,50 my.tif : $ gdal raster edit --metadata AUTHOR=EvenR my.tif : $ gdal raster edit --unset-metadata AUTHOR my.tif : (GCP) (column=0,line=0,X=2,Y=49) (column=50,line=100,X=3,Y=48) $ gdal raster edit --gcp 0,0,2,49 --gcp 50,100,3,48 my.tif : (GCP) gcps.csv column line x y . $ gdal raster edit --gcp @gcps.csv my.tif : (NIR) $ gdal raster edit --color-interpretation red,green,blue,nir 4band.tif (AUTHOR) Even Rouault (COPYRIGHT) 1998-2026 August 18, 2026 GDAL-RASTER-EDIT(1)