Changes between Initial Version and Version 2 of Ticket #2724


Ignore:
Timestamp:
Dec 8, 2008, 11:45:33 AM (13 years ago)
Author:
warmerdam
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2724

    • Property Priority changed from normal to high
    • Property Status changed from new to assigned
    • Property Keywords vrt warped added
  • Ticket #2724 – Description

    initial v2  
    77
    88Example:
     9{{{
    910gdal_translate -of vrt -a_nodata 255 -expand rgb palette.tif rgb.vrt
    1011gdalwarp -of vrt -t_srs epsg:900913 -srcnodata 255 -dstnodata 255 rgb.vrt rgbwarped.vrt
    11 
     12}}}
    1213If I use in the second step gtiff driver instead of vrt, like:
     14{{{
    1315gdalwarp -of gtiff -t_srs epsg:900913 -srcnodata 255 -dstnodata 255 rgb.vrt rgbwarped.tif
     16}}}
    1417then the result is correct - new blank areas are filled with NODATA value.
    1518
    1619Difference is visible in the top left corner of the file. OpenEV shows:
     20{{{
    1721rgbwarped.vrt: 0r 0g 0b
    1822rgbwarped.tif: 255r 255g 255g [NODATA]
     23}}}
    1924
    2025It seems like a bug in the warping core related to vrt with expanded rgb.