17 lines
554 B
Plaintext
Raw Normal View History

{
"name": "closest_point",
"type": "function",
2020-07-02 01:46:48 +01:00
"groups": ["GeometryGroup"],
"description": "Returns the point on geometry1 that is closest to geometry2.",
"arguments": [
{"arg":"geometry1","description":"geometry to find closest point on"},
{"arg":"geometry2","description":"geometry to find closest point to"}
],
"examples": [
{
"expression":"geom_to_wkt(closest_point(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":"'Point(73.0769 115.384)'"
}
]
}