2016-08-25 18:36:28 +10:00
{
"name": "distance_to_vertex",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["GeometryGroup"],
2016-08-25 18:36:28 +10:00
"description": "Returns the distance along the geometry to a specified vertex.",
"arguments": [ {"arg":"geometry","description":"a linestring geometry"},
2019-03-12 16:24:04 +07:00
{"arg":"vertex","description":"vertex index, starting from 0; if the value is negative, the selected vertex index will be its total count minus the absolute value"}],
2016-08-25 18:36:28 +10:00
"examples": [ { "expression":"distance_to_vertex(geometry:=geom_from_wkt('LineString(0 0, 10 0, 10 10)'),vertex:=1)", "returns":"10.0"}]
}