Esempio 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
Esempio 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
Esempio n. 3
0
 def __len__(self):
     return capi.get_ds_raster_count(self.source._ptr)
Esempio 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
Esempio n. 5
0
 def __len__(self):
     return capi.get_ds_raster_count(self.source._ptr)
Esempio 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
Esempio n. 7
0
from ctypes import byref, c_int