[Gdal-dev] Python ReadRaster arguments
Gregory, Matthew
matt.gregory at oregonstate.edu
Wed May 16 17:30:56 EDT 2007
Apologies for what is likely a newbie question, but the documentation
for gdal.Band.ReadRaster() shows this parameter list:
def ReadRaster(*args, **kwargs):
"""
ReadRaster(self, int xoff, int yoff, int xsize, int ysize, int
buf_len,
int buf_xsize=0, int buf_ysize=0, int buf_type=0) -> CPLErr
"""
return _gdal.Band_ReadRaster(*args, **kwargs)
However, in all the examples I have seen, it looks like the "buf_len"
parameter is not given, e.g. (from
http://www.gdal.org/gdal_tutorial.html):
scanline = band.ReadRaster( 0, 0, band.XSize, 1, band.XSize, 1,
GDT_Float32 )
Can someone clarify the discrepancy?
thanks, matt
Matt Gregory
Faculty Research Assistant
Department of Forest Science
Oregon State University
Phone : (541) 758-7778
Email : matt.gregory at oregonstate.edu
More information about the Gdal-dev
mailing list