PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

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

535 {
536 assert(NULL != band);
537 assert(NULL != bandnum);
538
539 *bandnum = 0;
540
541 if (!band->offline) {
542 RASTER_DEBUG(3, "rt_band_get_ext_band_num: Band is not offline");
543 return ES_ERROR;
544 }
545
546 *bandnum = band->data.offline.bandNum;
547
548 return ES_NONE;
549}
#define RASTER_DEBUG(level, msg)
Definition librtcore.h:304
@ ES_NONE
Definition librtcore.h:182
@ ES_ERROR
Definition librtcore.h:183

References 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: