2015-12-13 22:05:46 +11:00
{
"name": "is_closed",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["GeometryGroup"],
2022-03-18 10:20:28 +01:00
"description": "Returns TRUE if a line string is closed (start and end points are coincident), or false if a line string is not closed. If the geometry is not a line string then the result will be NULL.",
2022-01-07 08:33:29 -05:00
"arguments": [{
"arg": "geometry",
"description": "a line string geometry"
}],
"examples": [{
"expression": "is_closed(geom_from_wkt('LINESTRING(0 0, 1 1, 2 2)'))",
2022-03-21 09:20:52 +01:00
"returns": "FALSE"
2022-01-07 08:33:29 -05:00
}, {
"expression": "is_closed(geom_from_wkt('LINESTRING(0 0, 1 1, 2 2, 0 0)'))",
2022-04-01 07:33:36 +02:00
"returns": "TRUE"
2022-01-07 08:33:29 -05:00
}],
"tags": ["points", "start", "closed", "end", "coincident", "result", "false", "line"]
2015-12-13 22:05:46 +11:00
}