Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
696 B
Plaintext
Raw Permalink Normal View History

{
"name": "is_closed",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["GeometryGroup"],
"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.",
"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"
}, {
"expression": "is_closed(geom_from_wkt('LINESTRING(0 0, 1 1, 2 2, 0 0)'))",
"returns": "TRUE"
}],
"tags": ["points", "start", "closed", "end", "coincident", "result", "false", "line"]
}