Skip to main content
This function returns a two-point LineString geometry representing the minimum clearance distance of the input geometry. If the input geometry does not have a defined minimum clearance, such as for single Points or coincident MultiPoints, an empty LineString geometry is returned instead. ST_MinimumClearanceLine

Signatures

ST_MinimumClearanceLine(geometry: Geometry)

Parameters

geometry
Geometry
required
The input geometry.

Return type

The resulting geometry.

Example

SELECT ST_MinimumClearanceLine(
        ST_GeomFromWKT('POLYGON ((65 18, 62 16, 64.5 16, 62 14, 65 14, 65 18))')
)
LINESTRING (64.5 16, 65 16)