[gdal-dev] python: possible to get Dataset from Band

Gregory, Matthew matt.gregory at oregonstate.edu
Tue Nov 9 18:07:37 EST 2010


Even Rouault wrote:
> No, there's no direct way of doing it with an API call. But as you can
> only get a Band from a Dataset, you can easily do something like :
> 
> band = ds.GetRasterBand(xxx)
> band.ds = ds
> 
> and then use band.ds to get access to the dataset...

Ah, of course.  Thanks for helping me to see it.

matt


More information about the gdal-dev mailing list