ST_ConcaveHull¶
Returns a concave hull enclosing the input geometry.
Usage¶
geometry ST_ConcaveHull(geom: geometry, pct_convex: double)
Arguments¶
- geom (geometry)
- pct_convex (double)
Description¶
Returns a concave hull enclosing the input geometry. The pct_convex
parameter controls how “tight” the hull is: 1.0 produces the convex
hull, while smaller values produce tighter, more concave shapes.
Examples¶
SELECT ST_ConcaveHull(
ST_GeomFromText('LINESTRING(100 150, 50 60, 70 80, 160 170)'),
0.3
);
┌──────────────────────────────────────────────────────────────────────────────┐
│ st_concavehull(st_geomfromtext(Utf8("LINESTRING(100 150, 50 60, 70 80, 160 1 │
│ 70)")),Float64(0.3))… │
╞══════════════════════════════════════════════════════════════════════════════╡
│ POLYGON((70 80,50 60,100 150,160 170,70 80)) │
└──────────────────────────────────────────────────────────────────────────────┘