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

16 lines
489 B
Plaintext
Raw Permalink Normal View History

{
"name": "reverse",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["GeometryGroup"],
"description": "Reverses the direction of a line string by reversing the order of its vertices.",
2022-01-13 08:56:17 -05:00
"arguments": [{
"arg": "geometry",
"description": "a geometry"
}],
"examples": [{
"expression": "geom_to_wkt(reverse(geom_from_wkt('LINESTRING(0 0, 1 1, 2 2)')))",
"returns": "'LINESTRING(2 2, 1 1, 0 0)'"
}],
"tags": ["direction", "order", "vertices", "reverses", "line", "reversing"]
}