2015-12-15 07:39:43 +11:00
|
|
|
{
|
|
|
|
"name": "geometry_n",
|
|
|
|
"type": "function",
|
2020-07-02 01:46:48 +01:00
|
|
|
"groups": ["GeometryGroup"],
|
2020-07-29 08:51:06 +02:00
|
|
|
"description": "Returns a specific geometry from a geometry collection, or NULL if the input geometry is not a collection.",
|
2015-12-15 07:39:43 +11:00
|
|
|
"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)'"}]
|
|
|
|
}
|