90 <<
"MEMTiledRasterBand::IReadBlock DEBUG: entered..." 91 <<
"\nnBlockXSize: " << nBlockXSize
92 <<
"\nnBlockYSize: " << nBlockYSize
93 <<
"\nnBlockXOff: " << nBlockXSize
94 <<
"\nnBlockYOff: " << nBlockYSize
112 ul.x + nBlockXSize - 1,
113 ul.y + nBlockYSize - 1);
118 <<
"\nrequestRect: " << requestRect
119 <<
"\nbufferRect: " << bufferRect
124 if(requestRect.height() > 1)
127 <<
"MEMTiledRasterBand::IReadBlock WARN!" 128 <<
"\nOnly one scanline block reads allowed" << endl;
137 bool loadBuffer =
false;
139 if ( (requestRect.completely_within(bufferRect) ==
false) ||
150 <<
"\nscanlineTile: " << scanlineTile
168 <<
"\ntileOrigin: " << tileOrigin << endl;
203 <<
"nBlockYOff: " << nBlockYOff
204 <<
"\ntheDataset->theData->getImageRectangle()" 216 copyNulls(pImage, nBlockYSize * nBlockXSize);
220 int nWordSize = GDALGetDataTypeSize( eDataType ) / 8;
221 CPLAssert( nBlockXOff == 0 );
223 if( nPixelOffset == nWordSize )
226 bufferRect.
width() * BPP +
227 (ul.x - bufferRect.
ul().
x) * BPP;
234 nPixelOffset * nBlockXSize);
239 <<
"MEMTiledRasterBand::IReadBlock WARN!" 240 <<
"\nUnhandled wordsize..." 248 for(
int iPixel = 0; iPixel < nBlockXSize; iPixel++ )
250 memcpy( (GByte *) pImage+ iPixel*nWordSize,
251 pabyCur + iPixel*nPixelOffset,
virtual ossimRefPtr< ossimImageData > getTile(const ossimIrect &rect, ossim_uint32 resLevel=0)
virtual ossim_uint32 getWidth() const
virtual void setToStartOfSequence()
ossimIrect theAreaOfInterest
const ossimIpt & ul() const
virtual ossimDataObjectStatus getDataObjectStatus() const
virtual void initialize()
Initialize the data buffer.
MEMTiledDataset * theDataset
virtual ossimObject * dup() const
virtual void loadTile(const void *src, const ossimIrect &src_rect, ossimInterleaveType il_type)
virtual ossimDataObjectStatus validate() const
unsigned int ossim_uint32
virtual ossimIrect getImageRectangle() const
ossim_uint32 width() const
virtual void setOrigin(const ossimIpt &origin)
virtual ossim_uint32 getScalarSizeInBytes() const
virtual void makeBlank()
Initializes data to null pixel values.
ossim_int64 getNumberOfTilesHorizontal() const
ossimImageSourceSequencer * theInterface
virtual const void * getBuf() const
ossimRefPtr< ossimImageData > theData
OSSIMDLLEXPORT std::ostream & ossimNotify(ossimNotifyLevel level=ossimNotifyLevel_WARN)
void copyNulls(void *pImage, int count) const
Copies null values to pImage.