QGIS/resources/function_help/json/flip_coordinates
Alex d7ffe0b7ec
DelazJ bonification
Co-authored-by: Harrissou Sant-anna <delazj@gmail.com>
2022-01-11 11:17:49 -05:00

16 lines
566 B
Plaintext

{
"name": "flip_coordinates",
"type": "function",
"groups": ["GeometryGroup"],
"description": "Returns a copy of the geometry with the x and y coordinates swapped. Useful for repairing geometries which have had their latitude and longitude values reversed.",
"arguments": [{
"arg": "geometry",
"description": "a geometry"
}],
"examples": [{
"expression": "geom_to_wkt(flip_coordinates(make_point(1, 2)))",
"returns": "'Point (2 1)'"
}],
"tags": ["latitude", "longitude", "reversed", "swapped", "coordinates", "repairing", "copy"]
}