Re: [gdal-dev] How to read first line pixel values of an image into buffer

2010-05-20 Thread Ivan Lucena
Hi there, > ---Original Message--- > From: mail2vajram > To: gdal-dev@lists.osgeo.org > Subject: [gdal-dev] How to read first line pixel values of an image into > buffer > Sent: May 20 '10 02:30 > > > I am using the following code to read pixe

Re: [gdal-dev] How to read first line pixel values of an image into buffer

2010-05-20 Thread Frank Warmerdam
mail2vajram wrote: I am using the following code to read pixel values. It read only one pixel value..how to read entire row.. generally this code is used to read 0th column 1st row and return pixel value into buffer. code: Band band = ds.GetRasterBand(1); double[] buffer = new double[d

Re: [gdal-dev] How to read first line pixel values of an image into buffer

2010-05-20 Thread Iván Sánchez Ortega
El 20/05/2010 9:30, mail2vajram escribió: I am using the following code to read pixel values. It read only one pixel value..how to read entire row.. Use a loop? generally this code is used to read 0th column 1st row and return pixel value into buffer. code: Band band = ds.GetRasterBand(1);

[gdal-dev] How to read first line pixel values of an image into buffer

2010-05-20 Thread mail2vajram
I am using the following code to read pixel values. It read only one pixel value..how to read entire row.. generally this code is used to read 0th column 1st row and return pixel value into buffer. code: Band band = ds.GetRasterBand(1); double[] buffer = new double[ds.RasterXSize]; band