2019-08-29 11:25:38 +10:00
|
|
|
{
|
|
|
|
"name": "collect_geometries",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["GeometryGroup"],
|
2019-08-29 11:25:38 +10:00
|
|
|
"description": "Collects a set of geometries into a multi-part geometry object.",
|
2022-01-13 08:56:17 -05:00
|
|
|
"variants": [{
|
|
|
|
"variant": "List of arguments variant",
|
|
|
|
"variant_description": "Geometry parts are specified as separate arguments to the function.",
|
|
|
|
"variableLenArguments": true,
|
|
|
|
"arguments": [{
|
|
|
|
"arg": "geometry1",
|
|
|
|
"syntaxOnly": true
|
|
|
|
}, {
|
|
|
|
"arg": "geometry2",
|
|
|
|
"syntaxOnly": true
|
|
|
|
}, {
|
|
|
|
"arg": "geometry",
|
|
|
|
"descOnly": true,
|
|
|
|
"description": "a geometry"
|
|
|
|
}],
|
|
|
|
"examples": [{
|
|
|
|
"expression": "geom_to_wkt(collect_geometries(make_point(1,2), make_point(3,4), make_point(5,6)))",
|
|
|
|
"returns": "'MultiPoint ((1 2),(3 4),(5 6))'"
|
|
|
|
}]
|
|
|
|
}, {
|
|
|
|
"variant": "Array variant",
|
|
|
|
"variant_description": "Geometry parts are specified as an array of geometry parts.",
|
|
|
|
"arguments": [{
|
|
|
|
"arg": "array",
|
|
|
|
"description": "array of geometry objects"
|
|
|
|
}],
|
|
|
|
"examples": [{
|
|
|
|
"expression": "geom_to_wkt(collect_geometries(array(make_point(1,2), make_point(3,4), make_point(5,6))))",
|
|
|
|
"returns": "'MultiPoint ((1 2),(3 4),(5 6))'"
|
|
|
|
}]
|
|
|
|
}],
|
|
|
|
"tags": ["part", "set", "collects", "object", "multi"]
|
2019-08-29 11:25:38 +10:00
|
|
|
}
|