QGIS/resources/function_help/json/straight_distance_2d

14 lines
526 B
Plaintext
Raw Normal View History

2021-08-03 18:13:54 +02:00
{
"name": "straight_distance_2d",
"type": "function",
"groups": ["GeometryGroup"],
"description": "Returns the straight distance of a geometry. The geometry must be a curve (circularstring, linestring).",
"arguments": [
{"arg":"geometry", "description": "The geometry."}
],
"examples": [
{ "expression":"straight_distance_2d(geom_from_wkt('LINESTRING(1 0, 1 1)'))", "returns":"1"},
{ "expression":"round(straight_distance_2d(geom_from_wkt('LINESTRING(1 4, 3 5, 5 0)')), 3)", "returns":"5.657"}
]
}