Returns the two-point LineString spanning a geometry's minimum clearance.
Syntax
Geometry ST_MinimumClearanceLine(geometry g);Parameters
| Parameter | Description |
|---|---|
g | The input geometry object. |
Description
ST_MinimumClearanceLine returns a LineString object whose two endpoints define the minimum clearance of the input geometry. If the geometry has no minimum clearance, the function returns LineString Empty.
Example
SELECT ST_AsText(ST_MinimumClearanceLine('POLYGON((0 0, 1 0,1 1e-4, 0 0))'));Output:
st_astext
-------------------------------------------
LINESTRING(1 0,0.99999999 0.000099999999)
(1 row)