GDAL-RASTER-CLIP(1) GDAL GDAL-RASTER-CLIP(1) (NAME) gdal-raster-clip - 3.11. (SYNOPSIS) : gdal raster clip [] . : -i, --input [] [ ] -o, --output [] [ ] : -h, --help --json-usage JSON --config = [] -q, --quiet ( ) [ ] : -f, --of, --format, --output-format ( "GDALG" ) [ ] --co, --creation-option = [] [ ] --overwrite [ ] --append --append [ ] --overwrite --bbox xmin,ymin,xmax,ymax --window --geometry --like --bbox-crs (CRS) --window col,line,width,height --bbox --geometry --like --geometry (WKT GeoJSON) --bbox --window --like --geometry-crs (CRS) --like --bbox --window --geometry --like-sql SELECT 'like' --like-where --like-layer 'like' --like-where WHERE SQL 'like' --like-sql --only-bbox 'geometry' 'like' --allow-bbox-outside-source --add-alpha . : --if, --input-format [] [ ] --oo, --open-option = [] [ ] (DESCRIPTION) gdal raster clip (georeferenced) . --bbox --like . SRS (resolution) . ( resampling ). clip gdal raster pipeline . (PROGRAM-SPECIFIC OPTIONS) --add-alpha . --allow-bbox-outside-source --bbox . NoData . --bbox ,,, . CRS --bbox-crs . X Y GIS X ( ) Y ( ) . . --bbox gdal raster clip . --allow-bbox-outside-source . --bbox-crs (CRS) ,,, --bbox . CRS . --bbox-crs (reprojection) . bbox-crs CRS . --geometry WKT GeoJSON ( ) . NoData 0 . . GeoJSON CRS WGS84 CRS GeoJSON --geometry-crs . WKT CRS CRS --geometry-crs . X Y GIS X Y . --bbox --like. --geometry-crs (CRS) --geometry . CRS . geometry-crs CRS . --like . . (union) . --like-sql --like-layer . NoData 0 . --bbox --geometry. --like-layer . --like-sql. --like-sql SQL. SELECT geom FROM my_layer WHERE country = 'France'. SQL like (OGR SQL Shapefile SQLite GeoPackage PostgreSQL PostGIS ). --like-layer --like-where. --like-where (attribute query). country = 'France'. --only-bbox --geometry --like . --window ,,, 3.12. /. / (column line) . NoData . (STANDARD OPTIONS) --co, --creation-option = . GeoTIFF () . . . --formats . Raster drivers . --if, --input-format / () . . . . . . -f, --of, --format, --output-format . : gdal --formats | grep raster | grep rw | sort --oo, --open-option = ( ). . --overwrite . gdal . (RETURN STATUS CODE) 0 ( ). (EXAMPLES) : GeoTIFF 2 49 3 50 WGS 84 $ gdal raster clip --bbox=2,49,3,50 --bbox-crs=EPSG:4326 in.tif out.tif --overwrite : GeoTIFF reference.tif $ gdal raster clip --like=reference.tif in.tif out.tif --overwrite : GeoTIFF 1000 2000 500 600 $ gdal raster clip --window=1000,2000,500,600 in.tif out.tif --overwrite : GeoTIFF COG --allow-bbox-outside-source ERROR 1: Computed source window -180 2943 6269 6235 falls partially outside source raster extent . $ gdal raster clip \ --bbox=3757032.814272985,-626172.1357121654,4383204.9499851465,0 \ --bbox-crs=EPSG:3857 \ --allow-bbox-outside-source \ in.tif out.tif \ --overwrite \ --output-format COG (AUTHORS) Even Rouault (COPYRIGHT) 1998-2026 August 18, 2026 GDAL-RASTER-CLIP(1)