Definition at line 7834 of file rt_api.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().
7838 assert(NULL != raster);
7840 RASTER_DEBUGF(3,
"rt_raster_wkb_size: computing size for %d bands",
7843 for (i = 0; i < raster->
numBands; ++i) {
7848 RASTER_DEBUGF(3,
"rt_raster_wkb_size: adding size of band %d", i);
7851 rterror(
"rt_raster_wkb_size: Corrupted band: unknown pixtype");
7861 if (!outasin && band->
offline) {
7870 size += pixbytes * raster->
width * raster->
height;
int rt_pixtype_size(rt_pixtype pixtype)
Return size in bytes of a value in the given pixtype.
#define RASTER_DEBUGF(level, msg,...)
union rt_band_t::@14 data
void rterror(const char *fmt,...)
Raster core error and info handlers.