[Gdal-dev] VRTSimpleSource bNoDataSet not initialized

Frank Warmerdam warmerdam at pobox.com
Fri Jun 8 00:08:13 EDT 2007


Stefan Klug wrote:
> Hi,
> 
> the subject says it all.
> In VRTSimpleSource the bNoDataSet member is not initialized in the 
> constructor.
> In my opinion it should be initialized to FALSE.

Stefan,

I agree.  I have made this change in trunk and 1.4 branch.

Best regards,

> This hit me when I tried to use a VRTSimpleSource with Average Sampling 
> and no explicitly set NoDataValue.
> In this case white pixels where not averaged because bNoDataSet was true 
> and dfNoDataValue zero.




-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the Gdal-dev mailing list