#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 )
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 , 8 years ago
Description: | modified (diff) |
---|
comment:2 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
In 34551: