> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RS_MetaData

Returns the metadata of the raster as a struct. The struct has the following schema:

* upperLeftX: upper left x coordinate of the raster, in terms of CRS units
* upperLeftX: upper left y coordinate of the raster, in terms of CRS units
* gridWidth: width of the raster, in terms of pixels
* gridHeight: height of the raster, in terms of pixels
* scaleX: ScaleX: the scaling factor in the x direction
* scaleY: ScaleY: the scaling factor in the y direction
* skewX: skew in x direction (rotation x)
* skewY: skew in y direction (rotation y)
* srid: srid of the raster
* numSampleDimensions: number of bands
* tileWidth: (Since `v1.6.1`) width of tiles in the raster
* tileHeight: (Since `v1.6.1`) height of tiles in the raster

For more information about ScaleX, ScaleY, SkewX, SkewY, please refer to the [Affine Transformations](/reference/wherobots-db/raster-data/raster-affine-transformation) section.

`tileWidth` and `tileHeight` are available since `v1.6.1`, they are the dimensions of the tiles in the raster. For example,
rasters written by `RS_FromGeoTiff` uses the tiling scheme of the loaded GeoTIFF file. For rasters that has only 1 tile,
`tileWidth` and `tileHeight` will be equal to `gridWidth` and `gridHeight` respectively.

## Signatures

```sql theme={"system"}
RS_MetaData (raster: Raster)
```

## Parameters

<ParamField body="raster" type="Raster" required>
  The input raster.
</ParamField>

## Return type

<ResponseField type="Array<Double>">
  An array of double values.
</ResponseField>

## Example

```sql theme={"system"}
SELECT RS_MetaData(raster) FROM raster_table
```

```
{-1.3095817809482181E7, 4021262.7487925636, 512, 517, 72.32861272132695, -72.32861272132695, 0.0, 0.0, 3857, 1, 256, 256}
```
