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

Modifies longitude coordinates in geometries, shifting values between -180..0 degrees to 180..360 degrees and vice versa. This is useful for normalizing data across the International Date Line and standardizing coordinate ranges for visualization and spheroidal calculations.

<Note>
  This function is only applicable to geometries that use lon/lat coordinate systems.
</Note>

<img src="https://mintcdn.com/wherobots/wLm_IRUSNlHZTHJP/images/sql-functions/ST_ShiftLongitude/ST_ShiftLongitude.svg?fit=max&auto=format&n=wLm_IRUSNlHZTHJP&q=85&s=3fc2a00a10339bfdfed7f560a2633b55" alt="ST_ShiftLongitude" width="500" height="300" data-path="images/sql-functions/ST_ShiftLongitude/ST_ShiftLongitude.svg" />

## Signatures

```sql theme={"system"}
ST_ShiftLongitude (geom: geometry)
```

## Parameters

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

## Return type

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

## Examples

```sql theme={"system"}
SELECT ST_ShiftLongitude(ST_GeomFromText('LINESTRING(177 10, 179 10, -179 10, -177 10)'))
```

```sql theme={"system"}
LINESTRING(177 10, 179 10, 181 10, 183 10)
```
