[Gdal-dev] question on RawRasterBand constructor

Jared Rubin JARED.RUBIN at saic.com
Thu Aug 30 18:23:34 EDT 2007


what exactly are nPixelOffset and nLineOffset? I am using the RawRasterBand 
class and I have an internally developed image file type from work that is 
scan line orientated, not tiled.  It would seem that the offsets are if you 
want to skip over image pixels. Our image file type is stored contigously  in 
memory where the 1st row of image pixels is followed by the 2nd row, followed 
by the 3rd row, etc.. So I thought that the RawRasterBand would be used to 
just read in a row of pixels at a time. 


RawRasterBand::RawRasterBand( FILE * fpRaw, vsi_l_offset nImgOffset,
                              int nPixelOffset, int nLineOffset,
                              GDALDataType eDataType, int bNativeOrder,
                              int nXSize, int nYSize, int bIsVSIL )

thanks
Jared



More information about the Gdal-dev mailing list