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.ReadRaster(0, 1,1,1, buffer, 1,1, 1, 1);


but when i am using the following code i am not able to getting entire first
row values values.

Band band = ds.GetRasterBand(1);
 double[] buffer = new double[ds.RasterXSize];
band.ReadRaster(0, 1,ds.RasterXSize,1, buffer, 1, 1, 1, 1);

Can any body suggest me which parameter i need to change. Iam using C# code
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/How-to-read-first-line-pixel-values-of-an-image-into-buffer-tp5078547p5078547.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to