# ST_Overlaps function

The ST_Overlaps function takes two geometries as input parameters. If the intersection of the geometries results in a geometry of the same dimension but is not equal to either of the given geometries, it returns 1 . Otherwise, it returns 0 (zero).

If any of the two geometries is null or is empty, then null is returned.

If the second geometry is not represented in the same spatial reference system as the first geometry, it will be converted to the other spatial reference system.

## Syntax

## Parameters

- geometry1
- A value of type ST_Geometry or one of its subtypes that represents
the geometry that is tested to overlap with
*geometry2*. - geometry2
- A value of type ST_Geometry or one of its subtypes that represents
the geometry that is tested to overlap with
*geometry1*.

## Return type

INTEGER