Opened 8 years ago

Last modified 8 years ago

#6581 closed defect

VRT warp NODATA value error at right/bottom edges — at Initial Version

Reported by: svaccari Owned by: warmerdam
Priority: normal Milestone:
Component: default Version: 2.1.0
Severity: normal Keywords: VRT warp NODATA
Cc:

Description

When using gdal_translate on a warped VRT the resulting image has wrong NODATA values at right/bottom edges.

This does not happen with GDAL 1.10. The commands to reproduce the bug are:

gdalWarp  -of VRT  -tr 128 128  -te 557056 4259840 720896 4325376    ^
                -dstnodata "255 0 255"    block33.tif    vrtBB_prova.vrt

gdal_translate  -co "COMPRESS=LZW"  vrtBB_prova.vrt  Calabria.tif    

(script is also in attach)

Bug can be traced back to this change in GDAL code:

Revision: 27798
Author: rouault
Date: 2014-10-04 19:02:57
Message:
VRT warp: avoid to warp truncated blocks at right/bottom edges, so that scale computation is correct
----
Modified : /trunk/gdal/frmts/vrt/vrtwarped.cpp

Bug disappears commenting the lines corresponding to this change.

Change History (0)

Note: See TracTickets for help on using tickets.