mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
16 lines
489 B
Plaintext
16 lines
489 B
Plaintext
{
|
|
"name": "reverse",
|
|
"type": "function",
|
|
"groups": ["GeometryGroup"],
|
|
"description": "Reverses the direction of a line string by reversing the order of its vertices.",
|
|
"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"]
|
|
}
|