RS_FromPath¶
Creates an out-of-database raster from a raster file path.
Usage¶
raster RS_FromPath(path: string)
Arguments¶
- path (string)
Description¶
Loads raster metadata from the file at path and returns a raster whose
bands reference the source file as out-db bands.
This is useful when you want to work with rasters stored on disk without copying their pixel data into the raster value itself.
Examples¶
SELECT RS_BandPath(RS_FromPath('../../../submodules/sedona-testing/data/raster/test4.tiff'));
┌──────────────────────────────────────────────────────────────────────────────┐
│ rs_bandpath(rs_frompath(Utf8("../../../submodules/sedona-testing/data/raster │
│ /test4.tiff")))… │
╞══════════════════════════════════════════════════════════════════════════════╡
│ ../../../submodules/sedona-testing/data/raster/test4.tiff │
└──────────────────────────────────────────────────────────────────────────────┘