Skip to content
Permalink
Browse files
add straight distance expression help
  • Loading branch information
Koyaani authored and nyalldawson committed Aug 23, 2021
1 parent ff8bc65 commit d55b97a5d57efa1e1f5e838f409b637f6157dcde
Showing with 13 additions and 0 deletions.
  1. +13 −0 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.