gdal.warp

Reproject, resample, or warp a raster using gdalwarp.

  • Kind: standard
  • Network: no
  • Wraps: gdalwarp

Inputs🔗

NameTypeDescription
sourcefile (GeoTIFF)Input raster.
target_crsstringTarget CRS (e.g. "EPSG:4326", WKT, or PROJ string). Empty = preserve source CRS.
resolutionnumberTarget pixel size in target CRS units. 0 = preserve source resolution.
resamplingstringResampling method. One of nearest, bilinear, cubic, cubicspline, lanczos, average, mode, max, min, med, q1, q3, sum, rms. Default nearest.
output_formatstringGDAL output driver short name (default GTiff).

Outputs🔗

NameTypeDescription
rasterfile (GeoTIFF)Warped raster.