Changeset 14127

Show
Ignore:
Timestamp:
03/30/08 09:11:25 (4 months ago)
Author:
rouault
Message:

Fix Lanczos Resample Anomolies near nodata values (#1951)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.5/gdal/alg/gdalwarpkernel.cpp

    r12561 r14127  
    18001800    } 
    18011801 
    1802     if( dfAccumulatorWeight < 0.999
     1802    if( dfAccumulatorWeight < 0.999 || dfAccumulatorWeight > 1.001
    18031803    { 
    18041804        *pdfReal = dfAccumulatorReal / dfAccumulatorWeight; 
     
    19971997    } 
    19981998 
    1999     if( dfAccumulatorWeight < 0.999
     1999    if( dfAccumulatorWeight < 0.999 || dfAccumulatorWeight > 1.001
    20002000    { 
    20012001        *pdfReal = dfAccumulatorReal / dfAccumulatorWeight;