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

◆ rt_band_get_file_timestamp()

uint64_t rt_band_get_file_timestamp ( rt_band  band)

Return file timestamp.

Only for out-db rasters.

Parameters
band: the band
Returns
file timestamp (Unix time) or 0 in case of error.

Definition at line 767 of file rt_band.c.

767 {
768 VSIStatBufL sStat;
769
770 assert(NULL != band);
771 if (!band->offline) {
772 rterror("rt_band_get_file_timestamp: Band is not offline");
773 return 0;
774 }
775 /* offline_data is disabled */
777 rterror("rt_band_get_file_timestamp: Access to offline bands disabled");
778 return 0;
779 }
780
781 if( VSIStatL(band->data.offline.path, &sStat) != 0 ) {
782 rterror("rt_band_get_file_timestamp: Cannot access file");
783 return 0;
784 }
785
786 return sStat.st_mtime;
787}
void rterror(const char *fmt,...) __attribute__((format(printf
Wrappers used for reporting errors and info.
bool enable_outdb_rasters
Definition rt_band.c:576

References enable_outdb_rasters, and rterror().

Referenced by RASTER_getBandFileTimestamp(), and test_band_metadata().

Here is the call graph for this function:
Here is the caller graph for this function: