mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
This feature adds a 'collect' aggregation method resulting in a single multipart geometry from a list of geometries. This is exposed in the expression engine via the existing aggregate() function, as well as a new collect() function.
14 lines
594 B
Plaintext
14 lines
594 B
Plaintext
{
|
|
"name": "collect",
|
|
"type": "function",
|
|
"description": "Returns the multipart geometry of aggregated geometries from an expression",
|
|
"arguments": [
|
|
{"arg":"expression", "description":"geometry expression to aggregate"},
|
|
{"arg":"group_by", "optional":true, "description":"optional expression to use to group aggregate calculations"},
|
|
{"arg":"filter", "optional":true, "description":"optional expression to use to filter features used to calculate aggregate"}
|
|
],
|
|
"examples": [
|
|
{ "expression":"collect( $geometry )", "returns":"multipart geometry of aggregated geometries"}
|
|
]
|
|
}
|