Hi

Actually, another possibility to consider if you really need to use this interleaved 
raster model is to create your own sample model class based on your specific 
requirements. That way you could probably optimize the access to the data buffer based 
on your knowledge of its layout. I guess at the minimum you'd need to implement the 
abstract methods in SampleModel, but for the sake of performance you would probably 
have to implement quite a few more.

As for using the existing sample models, the offsets that you can set in the pixel 
interleaved model are really designed for intra pixel offsets of the elements 
representing each band, and using them to add a global offset to skip the interleaved 
rows isn't really in the spirit of the design.

This does raise the interesting issue that the default sample models don't support the 
general case of the samples starting at some fixed offset into the data buffer, as far 
as I can see.

Cheers,
Pete


---
Pete Cockerell
California, USA
http://www.best.com/~petec



--== Sent via Deja.com http://www.deja.com/ ==--
Share what you know. Learn what you don't.

Reply via email to