[gdal-dev] get image pointer

Even Rouault even.rouault at spatialys.com
Mon Jan 4 08:46:32 PST 2016


Le jeudi 17 décembre 2015 11:41:39, Basos Syrris a écrit :
> Hi list,By using Python Gdal api to read an image, is it possible to get
> the pointer of the image instead of taking the whole content as a string
> structure as this happens with the ReadRaster() method?T

You can call Band.ReadAsArray(xoff,yoff,xsize,ysize) to read a sub window of the 
image as a numpy array.


> hank you in
> advance.Basos

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list