> For the complete documentation index, see [llms.txt](https://docs.ellipsis-drive.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ellipsis-drive.com/developers/api-v3/ogc-protocols/terrain-rgb.md).

# Terrain RGB

Endpoint to fetch altitude data from an Ellipsis raster layer encoded as a PNG

| **Description** | Get RGB encoded altitude data as png.                                                                                              |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| **Endpoint**    | `/path/{pathId}/timestamp/{timestampId}/tile/{z}/{x}/{y}?style={"method":"terrainRgb", "parameters":{"bandNumber":{band number}}}` |
| **Method**      | GET                                                                                                                                |

## Access Level Rules

| **Minimum Access Level** | view |
| ------------------------ | ---- |

## Processing Units

| **Minimum processing units** |   |
| ---------------------------- | - |

## Parameters

| Name        | Type | Description                                                                                                                                                                                      | Required | Default |
| ----------- | ---- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------- | ------- |
| pathId      | uuid | The id of the raster layer.                                                                                                                                                                      | true     |         |
| timestampId | uuid | The id of the timestamp.                                                                                                                                                                         | true     |         |
| z,x,y       | int  | The z,x and y location of the tile as integers.                                                                                                                                                  | true     |         |
| style       | JSON | A JSON with properties "method" = "terrainRgb" and "paramters" is a JSON with property "bandNumber". The bandNumber must be an integer indicating the band of the raster to fetch the data from. | true     |         |
