[gdal-dev] Reading a GeoTiff file
yuta sato
yutaxsato at gmail.com
Mon Jan 12 23:30:06 PST 2015
Dear Gdal Developers and Users:
I have a big GeoTiff image file, and the following rectangular boundary:
ulx,uly,lrx,lry = -180, 90, 180, 80
I have to read the image lying for that boundary only.
How can I read it?
************************************************************
inraster = gdal.Open(infile, GA_ReadOnly)
data = inraster.GetRasterBand(1).ReadAsArray()
print data
************************************************************
Hope someone can help me.
Thanks in the advance
Yuta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150113/d11be2ff/attachment.html>
More information about the gdal-dev
mailing list