Skip to main content
Returns the closure of the combinatorial boundary of this Geometry. ST_Boundary

Signatures

ST_Boundary(geom: Geometry)

Parameters

geom
Geometry
required
The input geometry.

Return type

The resulting geometry.

Example

SELECT ST_Boundary(ST_GeomFromWKT('POLYGON((1 1,0 0, -1 1, 1 1))'))
LINESTRING (1 1, 0 0, -1 1, 1 1)