mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
19 lines
616 B
Plaintext
19 lines
616 B
Plaintext
{
|
|
"name": "point_n",
|
|
"type": "function",
|
|
"groups": ["GeometryGroup"],
|
|
"description": "Returns a specific node from a geometry.",
|
|
"arguments": [{
|
|
"arg": "geometry",
|
|
"description": "geometry object"
|
|
}, {
|
|
"arg": "index",
|
|
"description": "index of node to return, where 1 is the first node; if the value is negative, the selected vertex index will be its total count minus the absolute value"
|
|
}],
|
|
"examples": [{
|
|
"expression": "geom_to_wkt(point_n(geom_from_wkt('POLYGON((0 0, 4 0, 4 2, 0 2, 0 0))'),2))",
|
|
"returns": "'Point (4 0)'"
|
|
}],
|
|
"tags": ["specific", "node", "vertex"]
|
|
}
|