Skip to content
Permalink
Browse files
extend geometry_n def
  • Loading branch information
roya0045 committed Jan 3, 2022
1 parent d339d16 commit 35d9e12eb7d57b8e8c82c79c467b67d9d6a8f4c4
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 35d9e12

Please sign in to comment.