PostGIS  2.1.10dev-r@@SVN_REVISION@@
def raster2pgsql.collect_nodata_values (   ds,
  band_from,
  band_to 
)
Collect nodata values of bands in requested range

Definition at line 531 of file raster2pgsql.py.

References is_nan().

Referenced by wkblify_raster_level().

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

Here is the call graph for this function:

Here is the caller graph for this function: