From 36da1e723fecb045e4f546d9d18148f6b20dc74c Mon Sep 17 00:00:00 2001 From: Jakob Miksch Date: Tue, 2 Aug 2022 15:33:47 +0200 Subject: [PATCH] gdalwarp: add page (#8274) --- pages/common/gdalwarp.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/gdalwarp.md diff --git a/pages/common/gdalwarp.md b/pages/common/gdalwarp.md new file mode 100644 index 000000000..fce0a19f6 --- /dev/null +++ b/pages/common/gdalwarp.md @@ -0,0 +1,16 @@ +# gdalwarp + +> Image reprojection and warping utility. +> More information: . + +- Reproject a raster dataset: + +`gdalwarp -t_srs {{EPSG:4326}} {{path/to/input.tif}} {{path/to/output.tif}}` + +- Crop a raster dataset by using specific coordinates: + +`gdalwarp -te {{min_x}} {{min_y}} {{max_x}} {{max_y}} -te_srs {{EPSG:4326}} {{path/to/input.tif}} {{path/to/output.tif}}` + +- Crop a raster dataset using a vector layer: + +`gdalwarp -cutline {{path/to/area_to_cut.geojson}} -crop_to_cutline {{path/to/input.tif}} {{path/to/output.tif}}`