mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
14 lines
496 B
Plaintext
14 lines
496 B
Plaintext
|
{
|
||
|
"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"}
|
||
|
]
|
||
|
}
|