Re: [gdal-dev] python: read pixel from raster

2011-01-12 Thread Sebastian E. Ovide
http://www.gis.usu.edu/~chrisg/python/2009/lectures/ospy_slides4.pdf 2011/1/12 Sebastian E. Ovide > thanks for that... > > What I'm looking for is something like ReadRaster but using the > coordinates system used by the raster... (it could be lat,long etc...) > > otherwise I would need to do som

Re: [gdal-dev] python: read pixel from raster

2011-01-12 Thread Paolo Corti
2011/1/12 Sebastian E. Ovide : > thanks for that... > What I'm looking for is something like ReadRaster but using the coordinates > system used by the raster... (it could be lat,long etc...) > otherwise I would need to do something like > cs=read_raster_coordinate_system() > (x,y)= cs.convert_from_

Re: [gdal-dev] python: read pixel from raster

2011-01-12 Thread Sebastian E. Ovide
thanks for that... What I'm looking for is something like ReadRaster but using the coordinates system used by the raster... (it could be lat,long etc...) otherwise I would need to do something like cs=read_raster_coordinate_system() (x,y)= cs.convert_from_cs_to_pixel_xy(x,y) pixel=ReadRaster is

Re: [gdal-dev] python: read pixel from raster

2011-01-12 Thread Chaitanya kumar CH
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 essent

Re: [gdal-dev] python: read pixel from raster

2011-01-12 Thread Jorge Arévalo
On Wed, Jan 12, 2011 at 4:57 PM, Sebastian E. Ovide 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] python: read pixel from raster

2011-01-12 Thread Sebastian E. Ovide
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@lists.osgeo.or