Opened 17 months ago

Closed 17 months ago

Last modified 17 months ago

#6581 closed defect (fixed)

VRT warp NODATA value error at right/bottom edges

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

Description (last modified by svaccari)

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 and data can be found at this link: http://www.3drte.it/GDAL/bugData.zip

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 (5)

comment:1 Changed 17 months ago by svaccari

Description: modified (diff)

comment:2 Changed 17 months ago by Even Rouault

Resolution: fixed
Status: newclosed

In 34551:

VRT warp: fix issue with partial blocks at the right/bottom and dest nodata values that are different per band (fixes #6581)

comment:3 Changed 17 months ago by Even Rouault

In 34552:

VRT warp: fix issue with partial blocks at the right/bottom and dest nodata values that are different per band (fixes #6581)

comment:4 Changed 17 months ago by Even Rouault

In 34553:

VRT warp: fix issue with partial blocks at the right/bottom and dest nodata values that are different per band (fixes #6581)

comment:5 Changed 17 months ago by Even Rouault

Fixes in 2.1 branch post 2.1.1RC1 and in 2.0 branch post 2.0.3RC2

Note: See TracTickets for help on using tickets.