# Raster Profile

Extract pixel values along a line or path.

## Overview

Raster profile extracts pixel values from a raster dataset along a specified line or path.

## Inputs

- **Raster Dataset**: Raster dataset to sample
- **Line Geometry**: GeoJSON LineString for profile path
- **Band** (optional): Band to sample (default: first band)

## Outputs

Profile data containing:

- Distance along line
- Pixel values at each point
- Coordinates

## Example

```json
{
  "raster_dataset_id": 125,
  "line_geometry": {
    "type": "LineString",
    "coordinates": [ ... ]
  }
}
```

## Use Cases

- Elevation profiles
- Transect analysis
- Cross-section extraction
- Value sampling

## Notes

- Line geometry defines sampling path
- Values interpolated for sub-pixel positions
- Results include distance and values
- Processing time depends on line length

## Related Documentation

- [Analysis API](../api/analysis.md)
- [Raster Tools](raster.md)

