PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ rt_band_get_nodata()

rt_errorstate rt_band_get_nodata ( rt_band  band,
double *  nodata 
)

Get NODATA value.

Parameters
band: the band whose NODATA value will be returned
nodata: the band's NODATA value
Returns
ES_NONE or ES_ERROR

Definition at line 1730 of file rt_band.c.

1730  {
1731  assert(NULL != band);
1732  assert(NULL != nodata);
1733 
1734  *nodata = band->nodataval;
1735 
1736  if (!band->hasnodata) {
1737  rterror("rt_band_get_nodata: Band has no NODATA value");
1738  return ES_ERROR;
1739  }
1740 
1741  return ES_NONE;
1742 }
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
Definition: rt_context.c:199
@ ES_NONE
Definition: librtcore.h:180
@ ES_ERROR
Definition: librtcore.h:181
band
Definition: ovdump.py:57

References ovdump::band, ES_ERROR, ES_NONE, and rterror().

Referenced by _rti_iterator_arg_populate(), RASTER_bandmetadata(), RASTER_clip(), RASTER_getBandNoDataValue(), RASTER_mapAlgebra2(), RASTER_mapAlgebraExpr(), RASTER_mapAlgebraFct(), RASTER_mapAlgebraFctNgb(), RASTER_neighborhood(), RASTER_nMapAlgebra(), RASTER_nMapAlgebraExpr(), RASTER_setBandPath(), RASTER_setPixelValue(), RASTER_setPixelValuesArray(), RASTER_setPixelValuesGeomval(), RASTER_tile(), RASTER_union_finalfn(), RASTER_union_transfn(), rt_band_get_summary_stats(), rt_band_get_value_count(), rt_band_reclass(), rt_raster_colormap(), rt_raster_gdal_polygonize(), rt_raster_gdal_rasterize(), rt_raster_gdal_warp(), rt_raster_intersects(), rt_raster_to_gdal_mem(), test_band_metadata(), test_band_pixtype_16BSI(), test_band_pixtype_16BUI(), test_band_pixtype_1BB(), test_band_pixtype_2BUI(), test_band_pixtype_32BF(), test_band_pixtype_32BSI(), test_band_pixtype_32BUI(), test_band_pixtype_4BUI(), test_band_pixtype_64BF(), test_band_pixtype_8BSI(), test_band_pixtype_8BUI(), test_band_reclass(), test_band_stats(), test_gdal_warp(), test_raster_fully_within_distance(), test_raster_geos_contains(), test_raster_geos_contains_properly(), test_raster_geos_covered_by(), test_raster_geos_covers(), test_raster_geos_overlaps(), test_raster_geos_touches(), test_raster_intersects(), test_raster_replace_band(), test_raster_within_distance(), and test_raster_wkb().

Here is the call graph for this function: