> ## 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.

# ST_AddMeasure

Computes a new geometry with measure (M) values linearly interpolated between start and end points. For geometries lacking M dimensions, M values are added. Existing M values are overwritten by the new values. Applies only to LineString and MultiLineString inputs.

<img src="https://mintcdn.com/wherobots/AayJA2u8CknIeTgt/images/sql-functions/ST_AddMeasure/ST_AddMeasure.svg?fit=max&auto=format&n=AayJA2u8CknIeTgt&q=85&s=9ed55af227e49938b139fd9e3e737241" alt="ST_AddMeasure" width="400" height="170" data-path="images/sql-functions/ST_AddMeasure/ST_AddMeasure.svg" />

## Signatures

```sql theme={"system"}
ST_AddMeasure(geom: Geometry, measureStart: Double, measureEnd: Double)
```

## Parameters

<ParamField body="geom" type="Geometry" required>
  The input geometry.
</ParamField>

<ParamField body="measureStart" type="Double" required>
  The measure start value.
</ParamField>

<ParamField body="measureEnd" type="Double" required>
  The measure end value.
</ParamField>

## Return type

<ResponseField type="Geometry">
  The resulting geometry.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_AsText(ST_AddMeasure(
        ST_GeomFromWKT('LINESTRING (0 0, 1 0, 2 0, 3 0, 4 0, 5 0)')
))
```

```
LINESTRING M(0 0 10, 1 0 16, 2 0 22, 3 0 28, 4 0 34, 5 0 40)
```
