[gdal-dev] python: read pixel from raster
Chaitanya kumar CH
chaitanya.ch at gmail.com
Wed Jan 12 11:20:20 EST 2011
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 <
sebastian.ovide at gmail.com> 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
> gdal-dev at lists.osgeo.org
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110112/bc3bb87d/attachment.html
More information about the gdal-dev
mailing list