Opened 8 years ago

Closed 8 years ago

Last modified 8 years 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 by svaccari, 8 years ago

Description: modified (diff)

comment:2 by Even Rouault, 8 years ago

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 by Even Rouault, 8 years ago

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 by Even Rouault, 8 years ago

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 by Even Rouault, 8 years ago

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.