2016-01-15 12:50:11 +11:00
|
|
|
{
|
|
|
|
"name": "shortest_line",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["GeometryGroup"],
|
2018-05-10 19:59:12 +02:00
|
|
|
"description": "Returns the shortest line joining geometry1 to geometry2. The resultant line will start at geometry1 and end at geometry2.",
|
2016-01-15 12:50:11 +11:00
|
|
|
"arguments": [
|
2018-05-10 19:59:12 +02:00
|
|
|
{"arg":"geometry1","description":"geometry to find shortest line from"},
|
|
|
|
{"arg":"geometry2","description":"geometry to find shortest line to"}
|
2016-01-15 12:50:11 +11:00
|
|
|
],
|
|
|
|
"examples": [
|
|
|
|
{
|
|
|
|
"expression":"geom_to_wkt(shortest_line(geom_from_wkt('LINESTRING (20 80, 98 190, 110 180, 50 75 )'),geom_from_wkt('POINT(100 100)')))",
|
2020-08-23 09:08:36 +02:00
|
|
|
"returns":"'LineString(73.0769 115.384, 100 100)'"
|
2016-01-15 12:50:11 +11:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|