Reproject raster
Resamples a raster from its coordinate reference system into another.
Pitfall. Categorical rasters (land cover, classes) must use nearest or mode; other methods invent class values.
| Also called | Project Raster, Warp, Warp (reproject), gdalwarp |
|---|---|
| Group | raster/crs |
| Checks | crs.reprojected, raster.resampling, raster.nodata |
| Pitfalls | 1 listed above |
| Columbus tool | raster_op · reproject |
| Notes | Not stated |
| Status | active |
| Broader | Not stated |
| Narrower | Not stated |
| Related |
Parameters
| Name | Type | Required | Default | Values | Note |
|---|---|---|---|---|---|
crs | crs | yes | Not stated | Not stated | Not stated |
resampling | enum | no | Not stated | nearest, bilinear, cubic, average, mode | Not stated |
resolution | number | no | Not stated | Not stated | Output cell size in the target CRS units. |
Inputs and outputs
| Direction | Name | Type | Geometry | Note |
|---|---|---|---|---|
| Input | raster | raster | Not stated | Not stated |
| Output | output | raster | Not stated | Not stated |
In each engine
| Engine | Tool | Parameters | Differences |
|---|---|---|---|
gdal | gdal raster reproject |
| None noted |
postgis-raster | st_transform |
| None noted |
qgis | gdal:warpreproject |
| None noted |
rasterio | rasterio.warp.reproject |
|
|
rioxarray | rioxarray.raster_array.RasterArray.reproject |
|
|
terra | terra::project |
|
|