Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add sinuosity help
  • Loading branch information
lbartoletti authored and nyalldawson committed Jul 28, 2021
1 parent 8111171 commit 638e9a2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions resources/function_help/json/sinuosity
@@ -0,0 +1,13 @@
{
"name": "sinuosity",
"type": "function",
"groups": ["GeometryGroup"],
"description": "Returns the sinuosity of a geometry. The geometry must be a curve (circularstring, linestring).",
"arguments": [
{"arg":"geometry", "description": "The geometry."}
],
"examples": [
{ "expression":"round(sinuosity(geom_from_wkt(' LINESTRING(2 0, 2 2, 3 2, 3 3)')), 3)", "returns":"1.265"},
{ "expression":"sinuosity(geom_from_wkt(' LINESTRING( 3 1, 5 1) '))", "returns":"1.0"}
]
}

0 comments on commit 638e9a2

Please sign in to comment.