Definition at line 441 of file rt_wkb.c.
References ovdump::band, rt_raster_t::bands, rt_band_t::data, rt_raster_t::height, rt_raster_t::numBands, rt_band_t::offline, rt_band_t::pixtype, RASTER_DEBUGF, rt_pixtype_size(), RT_WKB_HDR_SZ, rterror(), and rt_raster_t::width.
Referenced by rt_raster_to_wkb().
445 assert(NULL != raster);
447 RASTER_DEBUGF(3,
"rt_raster_wkb_size: computing size for %d bands",
450 for (i = 0; i < raster->
numBands; ++i) {
455 RASTER_DEBUGF(3,
"rt_raster_wkb_size: adding size of band %d", i);
458 rterror(
"rt_raster_wkb_size: Corrupted band: unknown pixtype");
468 if (!outasin && band->
offline) {
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
#define RASTER_DEBUGF(level, msg,...)
int rt_pixtype_size(rt_pixtype pixtype)
Return size in bytes of a value in the given pixtype.