Return file timestamp.
Only for out-db rasters.
- Parameters
-
- Returns
- file timestamp (Unix time) or 0 in case of error.
Definition at line 608 of file rt_band.c.
611 assert(NULL !=
band);
612 if (!
band->offline) {
613 rterror(
"rt_band_get_file_timestamp: Band is not offline");
618 rterror(
"rt_band_get_file_timestamp: Access to offline bands disabled");
622 if( VSIStatL(
band->data.offline.path, &sStat) != 0 ) {
623 rterror(
"rt_band_get_file_timestamp: Cannot access file");
627 return sStat.st_mtime;
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_getBandFileTimestamp(), and test_band_metadata().