mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
19 lines
603 B
Plaintext
19 lines
603 B
Plaintext
{
|
|
"name": "closest_point",
|
|
"type": "function",
|
|
"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)')))",
|
|
"returns": "'Point(73.0769 115.384)'"
|
|
}],
|
|
"tags": ["closest", "point", "nearest"]
|
|
}
|