---
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

title: RS_FromPath
description: Creates an out-of-database raster from a raster file path.
kernels:
  - returns: raster
    args:
    - name: path
      type: 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

```sql
SELECT RS_BandPath(RS_FromPath('../../../submodules/sedona-testing/data/raster/test4.tiff'));
```
