Ticket #1610 (closed defect: fixed)
gdalwarp and cubic spline resampling: broken nodata handling; cubic resamp is Ok
| Reported by: | maphew | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.4.3 |
| Component: | GDAL_Raster | Version: | 1.4.0 |
| Severity: | major | Keywords: | warpapi |
| Cc: | dron, neteler, warmerdam |
Description
There is a bug in gdalwarp and the Cubic Spline resampler. See rcs-screen.png for the broken output and rc-screen.png for non-broken using the same input files. They are screen captures from Openev showing the resultant mosaics from gdalwarp, with "Windowed Raster Re-enhancement" applied after zooming in to bottom left corner.
The files in the bug package were processed with fwtools 1.2.2, but I've replicated the problem with "GDAL 1.5dev, FWTools 1.3.0, released 2007/04/06"
Commands Used
gdalwarp --version GDAL 1.4.0.0, FWTools 1.2.2, released 2007/02/22
Mosaic using Cubic Spline resampling, downsize output 90% for bug report
gdalwarp -rcs -tr 30 -multi dem_115b_30m ak_115b_dem dem_gd-merge-rcs.tif gdal_translate -outsize 10% 10% -co compress=lzw dem_gd-merge-rcs.tif \ gdal-rcs-bug\rcs-out.tif
Mosaic using Cubic resampling, downsize 90%
gdalwarp -rc -tr 30 -multi dem_115b_30m ak_115b_dem dem_gd-merge-rc.tif gdal_translate -outsize -co compress=lzw 10% 10% dem_gd-merge-rcs.tif \ gdal-rcs-bug\rc-out.tif
the "version" field in Ticket Properties doesn't have 1.5 listed

