PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ collect_pixel_types()

def raster2pgsql.collect_pixel_types (   ds,
  band_from,
  band_to 
)
Collect pixel types of bands in requested range.
   Use names of pixel types in format as returned
   by rt_core function rt_pixtype_name()

Definition at line 516 of file raster2pgsql.py.

516 def collect_pixel_types(ds, band_from, band_to):
517  """Collect pixel types of bands in requested range.
518  Use names of pixel types in format as returned
519  by rt_core function rt_pixtype_name()"""
520 
521  pt =[]
522  for i in range(band_from, band_to):
523  band = ds.GetRasterBand(i)
524  pixel_type = gdt2pt(band.DataType)['name'][3:]
525  pt.append(pixel_type)
526 
527  return pt
528 
def gdt2pt(gdt)
def collect_pixel_types(ds, band_from, band_to)

References gdt2pt().

Referenced by wkblify_raster_level().

Here is the call graph for this function:
Here is the caller graph for this function: