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

Return true if A equals to B

<img src="https://mintcdn.com/wherobots/fqh3gPDE0J25Lra_/images/sql-functions/ST_Equals/ST_Equals_true.svg?fit=max&auto=format&n=fqh3gPDE0J25Lra_&q=85&s=e8f3b7c447dafe98a0e8895dfae4b080" alt="ST_Equals returning true" width="400" height="300" data-path="images/sql-functions/ST_Equals/ST_Equals_true.svg" />

<img src="https://mintcdn.com/wherobots/fqh3gPDE0J25Lra_/images/sql-functions/ST_Equals/ST_Equals_false.svg?fit=max&auto=format&n=fqh3gPDE0J25Lra_&q=85&s=dea8d545e8af9b9bc4d96bd9aa0bc8d5" alt="ST_Equals returning false" width="400" height="300" data-path="images/sql-functions/ST_Equals/ST_Equals_false.svg" />

## Signatures

```sql theme={"system"}
ST_Equals (A: Geometry, B: Geometry)
```

## Parameters

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

<ParamField body="B" type="Geometry" required>
  The second geometry.
</ParamField>

## Return type

<ResponseField type="Boolean">
  Returns `true` or `false`.
</ResponseField>

## Example

```sql theme={"system"}
SELECT ST_Equals(ST_GeomFromWKT('LINESTRING(0 0,10 10)'), ST_GeomFromWKT('LINESTRING(0 0,5 5,10 10)'))
```

```
true
```
