Boundary
BOUNDARY(g Geometry)
Alias: ST_BOUNDARY
Returns the closure of the boundary of g.
Result type: geometry
Examples:
SELECT ASTEXT(BOUNDARY(LINEFROMTEXT('LINESTRING(0 0, 10 0, 10 10)')));
--------------------------------
col1
--------------------------------
MULTIPOINT (0 0, 10 10)
--------------------------------
SELECT ASTEXT(BOUNDARY(POLYFROMTEXT('POLYGON((0 0, 10 0, 10 10, 0 0))')));
--------------------------------
col1
--------------------------------
LINESTRING (0 0, 10 0, 10 10, 0 0)
--------------------------------
Last modified date: 04/03/2024