PostGIS  2.5.7dev-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 529 of file raster2pgsql.py.

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