Skip to content
Permalink
Browse files
Merge pull request #46684 from roya0045/improve_func_doc
extend geometry_n definition
  • Loading branch information
elpaso committed Jan 5, 2022
2 parents 40f2f71 + 35d9e12 commit df64116867cbb5011b6e2a22906769084e68ef14
Showing with 1 addition and 1 deletion.
  1. +1 −1 resources/function_help/json/geometry_n
@@ -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)'"}]

0 comments on commit df64116

Please sign in to comment.