gdalwarp
Image reprojection and warping utility. More information: <https://gdal.org/programs/gdalwarp>.
Install
- All systems
-
curl cmd.cat/gdalwarp.sh
- Debian
-
apt-get install gdal-bin
- Ubuntu
-
apt-get install gdal-bin
- Arch Linux
-
pacman -S gdal
- Kali Linux
-
apt-get install gdal-bin
- Fedora
-
dnf install gdal
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install gdal-bin
- OS X
-
brew install gdal
- Raspbian
-
apt-get install gdal-bin
- Dockerfile
- dockerfile.run/gdalwarp
Image reprojection and warping utility. More information: <https://gdal.org/programs/gdalwarp>.
-
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
© tl;dr; authors and contributors