Skip to content

Commit

Permalink
extend geometry_n def
Browse files Browse the repository at this point in the history
  • Loading branch information
roya0045 committed Jan 3, 2022
1 parent d339d16 commit 35d9e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/function_help/json/geometry_n
Expand Up @@ -2,7 +2,7 @@
"name": "geometry_n",
"type": "function",
"groups": ["GeometryGroup"],
"description": "Returns a specific geometry from a geometry collection, or NULL if the input geometry is not a collection.",
"description": "Returns a specific geometry from a geometry collection, or NULL if the input geometry is not a collection. Also returns a part from a multipart geometry.",
"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)'"}]
Expand Down

0 comments on commit 35d9e12

Please sign in to comment.