On Wed, Nov 10, 2010 at 12:22 AM, Even Rouault
wrote
>
> You're 100% right. By the way, assigning the dataset as a member of the band
> is an excellent means of making sure that we keep a reference to the dataset.
> That's indeed the gist of the patch attached to ticket
> http://trac.osgeo.org/gda
Even Rouault wrote:
> Le mercredi 10 novembre 2010 00:10:08, Paolo Corti a écrit :
> > Do we really need this? As far as I remember band must be in the same
> > context of dataset (dataset can't go out of scope), so why would we
> > need a reference to it?
>
> You're 100% right. By the way, assign
Le mercredi 10 novembre 2010 00:10:08, Paolo Corti a écrit :
> > 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
>
> Do we really need this? As far a
> 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
Do we really need this? As far as I remember band must be in the same
context of dataset (dataset can't go o
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 he
Le mardi 09 novembre 2010 23:34:35, Gregory, Matthew a écrit :
> Hi all,
>
> An easy question and apologies if it's been asked before.
>
> Is there a way to get the owning gdal.Dataset from a gdal.Band within
> Python? I'm not seeing GetDataset() as in C/C++ within the Python
> bindings.
No, th
Hi all,
An easy question and apologies if it's been asked before.
Is there a way to get the owning gdal.Dataset from a gdal.Band within Python?
I'm not seeing GetDataset() as in C/C++ within the Python bindings.
thanks, matt
___
gdal-dev mailing li