Ejemplo n.º 1
0
 def bands(self):
     """
     Returns the bands of this raster as a list of GDALBand instances.
     """
     bands = []
     for idx in range(1, capi.get_ds_raster_count(self._ptr) + 1):
         bands.append(GDALBand(self, idx))
     return bands
Ejemplo n.º 2
0
 def bands(self):
     """
     Returns the bands of this raster as a list of GDALBand instances.
     """
     bands = []
     for idx in range(1, capi.get_ds_raster_count(self._ptr) + 1):
         bands.append(GDALBand(self, idx))
     return bands
Ejemplo n.º 3
0
 def __len__(self):
     return capi.get_ds_raster_count(self.source._ptr)
Ejemplo n.º 4
0
 def bands(self):
     bands = []
     for idx in range(1, capi.get_ds_raster_count(self.ptr) + 1):
         bands.append(GDALBand(self, idx))
     return bands
Ejemplo n.º 5
0
 def __len__(self):
     return capi.get_ds_raster_count(self.source._ptr)
Ejemplo n.º 6
0
 def bands(self):
     bands = []
     for idx in range(1, capi.get_ds_raster_count(self.ptr) + 1):
         bands.append(GDALBand(self, idx))
     return bands
Ejemplo n.º 7
0
from ctypes import byref, c_int