PostGIS  2.1.10dev-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 1686 of file rt_api.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().

1686  {
1687  assert(NULL != band);
1688  assert(NULL != bandnum);
1689 
1690  *bandnum = 0;
1691 
1692  if (!band->offline) {
1693  RASTER_DEBUG(3, "rt_band_get_ext_band_num: Band is not offline");
1694  return ES_ERROR;
1695  }
1696 
1697  *bandnum = band->data.offline.bandNum;
1698 
1699  return ES_NONE;
1700 }
#define RASTER_DEBUG(level, msg)
Definition: rt_api.h:281
union rt_band_t::@14 data
int32_t offline
Definition: rt_api.h:2240

Here is the caller graph for this function: