PostGIS  3.7.0dev-r@@SVN_REVISION@@

◆ rt_band_get_ext_band_num()

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 527 of file rt_band.c.

527  {
528  assert(NULL != band);
529  assert(NULL != bandnum);
530 
531  *bandnum = 0;
532 
533  if (!band->offline) {
534  RASTER_DEBUG(3, "rt_band_get_ext_band_num: Band is not offline");
535  return ES_ERROR;
536  }
537 
538  *bandnum = band->data.offline.bandNum;
539 
540  return ES_NONE;
541 }
#define RASTER_DEBUG(level, msg)
Definition: librtcore.h:302
@ ES_NONE
Definition: librtcore.h:182
@ ES_ERROR
Definition: librtcore.h:183
band
Definition: ovdump.py:58

References ovdump::band, ES_ERROR, ES_NONE, and RASTER_DEBUG.

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

Here is the caller graph for this function: