Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
add straight distance expression help
- Loading branch information
1 parent
ff8bc65
commit d55b97a
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"} | ||
] | ||
} |