This topic describes the ST_MinimumClearanceLine function. This function returns a LineString object that consists of two points, which represent the minimum clearance of a geometry object.

Syntax

Geometry  ST_MinimumClearanceLine(geometry  g);

Parameters

Parameter Description
g The geometry object that you want to specify.

Description

If the geometry object that you specify does not have a minimum clearance, this function returns LineString Empty.

Examples

Query the minimum clearance of a geometry object by using the default parameter settings.
SELECT ST_AsText(ST_MinimumClearanceLine('POLYGON((0 0, 1 0,1 1e-4, 0 0))'));
                 st_astext
-------------------------------------------
 LINESTRING(1 0,0.99999999 0.000099999999)
(1 row)