nirvn 2a326ef8ad [FEATURE] support aggregation of geometry
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.
2016-08-24 08:39:05 +07:00

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"}
]
}