PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ fetch_band_nodata()

def raster2pgsql.fetch_band_nodata (   band,
  default = 0 
)

Definition at line 642 of file raster2pgsql.py.

642 def fetch_band_nodata(band, default = 0):
643  assert band is not None
644 
645  nodata = default
646  if band.GetNoDataValue() is not None:
647  nodata = band.GetNoDataValue()
648  else:
649  logit("WARNING: No nodata flagged in raster_columns metadata. "
650  "In serialized raster, nodata bytes will have value of 0.\n")
651  return nodata
652 
def logit(msg)
def fetch_band_nodata(band, default=0)

References logit().

Referenced by wkblify_band().

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