> ## 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_Relate (Python)

> Check whether two geometries are related to each other.

Check whether two geometries are related to each other.

SQL reference: [`ST_Relate`](/reference/wherobots-db/geometry-data/predicates/ST_Relate)

## Signature

```python theme={"system"}
from sedona.spark.sql.st_predicates import ST_Relate

ST_Relate(
    a: ColumnOrName,
    b: ColumnOrName,
    intersectionMatrix: Optional[ColumnOrName] = None,
) -> Column
```

## Parameters

<ParamField path="a" type="ColumnOrName" required>
  One geometry column to check.
</ParamField>

<ParamField path="b" type="ColumnOrName" required>
  Other geometry column to check.
</ParamField>

<ParamField path="intersectionMatrix" type="Optional[ColumnOrName]" default="None">
  intersectionMatrix column to check
</ParamField>

## Returns

<ResponseField name="return" type="Column">
  True if a and b touch and False otherwise, as a boolean column.
</ResponseField>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.