mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-23 00:02:38 -05:00
- add accessors: geometry_n, interior_ring_n - add num_geometries, num_rings, num_interior_rings - add nodes_to_points for converting every node in a geometry to a multipoint geometry - add segments_to_lines for converting every segment in a geometry to a multiline geometry nodes_to_points and segments_to_lines are intended for use with geometry generator symbology, eg to allow use of m and z values for nodes/lines with data defined symbology.
9 lines
537 B
Plaintext
9 lines
537 B
Plaintext
{
|
|
"name": "geometry_n",
|
|
"type": "function",
|
|
"description": "Returns a specific geometry from a geometry collection, or null if the input geometry is not a collection.",
|
|
"arguments": [ {"arg":"geometry","description":"geometry collection"},
|
|
{"arg":"index","description":"index of geometry to return, where 1 is the first geometry in the collection"} ],
|
|
"examples": [ { "expression":"geom_to_wkt(geometry_n(geom_from_wkt('GEOMETRYCOLLECTION(POINT(0 1), POINT(0 0), POINT(1 0), POINT(1 1))'),3))", "returns":"'Point (1 0)'"}]
|
|
}
|