[Gdal-dev] bug in the documentation ?

Frank Warmerdam warmerdam at pobox.com
Thu Sep 2 12:04:21 EDT 2004


Stephane Routelous wrote:
> Hi,
> 
> according to the documentation
> (http://www.remotesensing.org:16080/gdal/classGDALRasterBand.html#a10)
...
> should it not be :
> 
> 09		   if( (iXBlock+1) * nXBlockSize > poBand->GetXSize())
> //note the +1
> 10                 nXValid = poBand->GetXSize()- iXBlock * nXBlockSize;
> 
> and
> 
> 13             if( (iYBlock+1) * nYBlockSize > poBand->GetYSize()) //note
> the +1
> 14                 nYValid = poBand->GetYSize()  - iYBlock * nYBlockSize;

Stephane,

You are correct.  I have committed a fix.

Thanks,
-- 
---------------------------------------+--------------------------------------
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    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list