[gdal-dev] gdalwarp vs gdal_translate for resizing images

Even Rouault even.rouault at spatialys.com
Thu Oct 27 06:48:15 PDT 2016


Le jeudi 27 octobre 2016 15:02:11, Travis Kirstine a écrit :
> I've been looking at resampling high resolution orthophoto images (0.10m)
> using gdalwarp vs gdal_translate to a lower resolution
> 
> gdalwarp  -co TILED=YES -srcnodata "0 0 0" -dstnodata "0 0 0" -tr 2 2   -r
> bilinear in.tif warp_2m_bilinear.tif
> 
> compared to
> 
> gdal_translate -co TILED=YES -a_nodata 0 -tr 2 2  -r bilinear input.tif
> translate_2m_bilinear
> 
> 
> It appears to me that gdal_translate produces a much "better" result with
> reduced aliasing.  Why would the results differ?

Does gdalinfo on the output of both files report the same spatial extent ? 
gdalwarp and gdal_translate have different logic to compute it when not 
explicitly mentionned.


-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list