Sebastian, Refer the GDAL raster API tutorial at http://www.gdal.org/gdal_tutorial.html It describes how to read a line of pixels using the ReadRaster() function in Python. You can change the arguments to read just one pixel. Look at the documentation for GDALRasterBand::RasterIO() which is essentially the same in C++.
On Wed, Jan 12, 2011 at 9:27 PM, Sebastian E. Ovide < [email protected]> wrote: > Hi All, > > what would be the simpler way to read a pixel value from a raster using > python ? > > something like pixelvalue=read(x,y) where x,y and in the raster coordinate > system > > thanks > > -- > Sebastian E. Ovide > > > > > > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev > -- Best regards, Chaitanya kumar CH. /tʃaɪθənjə/ /kʊmɑr/ +91-9494447584 17.2416N 80.1426E
_______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
