PostGIS  2.2.7dev-r@@SVN_REVISION@@
rt_errorstate rt_band_get_ext_band_num ( rt_band  band,
uint8_t *  bandnum 
)

Return bands' external band number (only valid when rt_band_is_offline returns non-zero).

Parameters
band: the band
bandnum: external band number (0-based)
Returns
ES_NONE or ES_ERROR if band is NOT out-db

Definition at line 278 of file rt_band.c.

References rt_band_t::data, ES_ERROR, ES_NONE, rt_band_t::offline, and RASTER_DEBUG.

Referenced by RASTER_tile(), test_band_metadata(), and test_raster_wkb().

278  {
279  assert(NULL != band);
280  assert(NULL != bandnum);
281 
282  *bandnum = 0;
283 
284  if (!band->offline) {
285  RASTER_DEBUG(3, "rt_band_get_ext_band_num: Band is not offline");
286  return ES_ERROR;
287  }
288 
289  *bandnum = band->data.offline.bandNum;
290 
291  return ES_NONE;
292 }
union rt_band_t::@6 data
int32_t offline
Definition: librtcore.h:2278
#define RASTER_DEBUG(level, msg)
Definition: librtcore.h:307

Here is the caller graph for this function: