Return file size in bytes.
Only for out-db rasters.
- Parameters
-
- Returns
- file size in bytes or 0 in case of error.
Definition at line 586 of file rt_band.c.
589 assert(NULL !=
band);
590 if (!
band->offline) {
591 rterror(
"rt_band_get_file_size: Band is not offline");
596 rterror(
"rt_band_get_file_size: Access to offline bands disabled");
600 if( VSIStatL(
band->data.offline.path, &sStat) != 0 ) {
601 rterror(
"rt_band_get_file_size: Cannot access file");
605 return sStat.st_size;
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
char enable_outdb_rasters
References ovdump::band, enable_outdb_rasters, and rterror().
Referenced by RASTER_getBandFileSize(), and test_band_metadata().