Name

ST_BandPath — Returns system file path to a band stored in file system. If no bandnum specified, 1 is assumed.

Synopsis

text ST_BandPath(raster rast, integer bandnum=1);

Description

Returns system file path to a band. Returns null for in db raster bands.

Examples

SELECT rid, ST_BandPath(rast,1) AS file_path
FROM dem
LIMIT 1;

See Also

ST_BandFileSize, ST_BandFileTimestamp, ST_BandMetaData, postgis.enable_outdb_rasters, Section 6.15.1, “Out-DB Rasters”