PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ rt_raster_has_band()

int rt_raster_has_band ( rt_raster  raster,
int  nband 
)

Return TRUE if the raster has a band of this number.

Parameters
raster: the raster to get info from
nband: the band number. 0-based
Returns
TRUE if the raster has a band of this number, FALSE otherwise

Definition at line 1347 of file rt_raster.c.

1347  {
1348  return !(NULL == raster || nband >= raster->numBands || nband < 0);
1349 }
nband
Definition: pixval.py:52
raster
Be careful!! Zeros function's input parameter can be a (height x width) array, not (width x height): ...
Definition: rtrowdump.py:121

References pixval::nband, and rtrowdump::raster.

Referenced by _rti_iterator_arg_populate(), RASTER_clip(), RASTER_colorMap(), RASTER_convex_hull(), RASTER_dumpValues(), RASTER_hasNoBand(), RASTER_mapAlgebra2(), RASTER_mapAlgebraExpr(), RASTER_mapAlgebraFct(), RASTER_mapAlgebraFctNgb(), RASTER_tile(), RASTER_union_transfn(), rt_raster_colormap(), rtpg_nmapalgebra_rastbandarg_process(), test_gdal_polygonize(), test_raster_from_band(), and test_raster_metadata().

Here is the caller graph for this function: