Changes between Initial Version and Version 2 of Ticket #1504


Ignore:
Timestamp:
Mar 26, 2007, 12:18:10 PM (17 years ago)
Author:
warmerdam
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1504

    • Property Priority highestnormal
  • Ticket #1504 – Description

    initial v2  
    1 {{{
     1
    22When warping an image with bilinear or cubic convolution resampling and with the "-dstalpha" option, the resulting alpha mask has some extra lines in it.  The alpha mask improperly shows the edges of the source data as being valid data even if they were set to the srcnodata value.  The RGB output properly labels the edge pixels as being dstnodata.
    33
     
    1010Here is the command that I was using as a test case:
    1111
    12 gdalwarp -t_srs '+proj=stere +lat_ts=80 +lat_0=90 +lon_0=0 +ellps=WGS84' -tr 200 200 -te -1665228 2134989 -1243754 2558347 -srcnodata 0 -dstalpha -dstnodata 100 -wm 1000 -rc rgb-in.tif out.tif
     12{{{
     13gdalwarp -t_srs '+proj=stere +lat_ts=80 +lat_0=90 +lon_0=0 \
     14  +ellps=WGS84' -tr 200 200 -te -1665228 2134989 -1243754 2558347 \
     15  -srcnodata 0 -dstalpha -dstnodata 100 -wm 1000 -rc rgb-in.tif out.tif
     16}}}
    1317
    1418The same problem happens with or without the "-dstnodata 100" option - that is just there to prove that the pixels in question were in fact considered no data pixels.  I could send you the landsat band that I was using as a test case if you want it.
    15 }}}