ST_MinimumClearanceLine¶
Returns a LineString representing the minimum clearance distance of the input geometry.
Usage¶
geometry ST_MinimumClearanceLine(geom: geometry)
Arguments¶
- geom (geometry): Input geometry
Description¶
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.
Examples¶
SELECT ST_MinimumClearanceLine(
ST_GeomFromWKT('POLYGON ((65 18, 62 16, 64.5 16, 62 14, 65 14, 65 18))')
);
┌──────────────────────────────────────────────────────────────────────────────┐
│ st_minimumclearanceline(st_geomfromwkt(Utf8("POLYGON ((65 18, 62 16, 64.5 16 │
│ , 62 14, 65 14, 65 18))")))… │
╞══════════════════════════════════════════════════════════════════════════════╡
│ LINESTRING(64.5 16,65 16) │
└──────────────────────────────────────────────────────────────────────────────┘