Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add straight distance expression help
  • Loading branch information
Koyaani authored and nyalldawson committed Aug 23, 2021
1 parent ff8bc65 commit d55b97a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions resources/function_help/json/straight_distance_2d
@@ -0,0 +1,13 @@
{
"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"}
]
}

0 comments on commit d55b97a

Please sign in to comment.