PostGIS  2.1.10dev-r@@SVN_REVISION@@
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 3058 of file rt_api.c.

References ES_ERROR, ES_NONE, rt_band_t::hasnodata, rt_band_t::nodataval, 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_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().

3058  {
3059  assert(NULL != band);
3060  assert(NULL != nodata);
3061 
3062  *nodata = band->nodataval;
3063 
3064  if (!band->hasnodata) {
3065  rterror("rt_band_get_nodata: Band has no NODATA value");
3066  return ES_ERROR;
3067  }
3068 
3069  return ES_NONE;
3070 }
double nodataval
Definition: rt_api.h:2246
void rterror(const char *fmt,...)
Raster core error and info handlers.
Definition: rt_api.c:895
int32_t hasnodata
Definition: rt_api.h:2243

Here is the call graph for this function: