PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ collect_nodata_values()

def raster2pgsql.collect_nodata_values (   ds,
  band_from,
  band_to 
)
Collect nodata values of bands in requested range

Definition at line 530 of file raster2pgsql.py.

530 def collect_nodata_values(ds, band_from, band_to):
531  """Collect nodata values of bands in requested range"""
532 
533  nd = []
534  for i in range(band_from, band_to):
535  band = ds.GetRasterBand(i)
536  nodata = band.GetNoDataValue()
537  if nodata is not None and not is_nan(nodata):
538  nd.append(nodata)
539 
540  return nd
541 
def is_nan(x)
Definition: raster2pgsql.py:73
def collect_nodata_values(ds, band_from, band_to)

References is_nan().

Referenced by wkblify_raster_level().

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