Skip to content

Commit 6efe66d

Browse files
kannesnyalldawson
authored andcommitted
Add simple-as-possible example to geometries_to_array expression function
1 parent a33da9b commit 6efe66d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/function_help/json/geometries_to_array

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"arg": "geometry",
88
"description": "the input geometry"
99
}],
10-
"examples": [{ "expression":"geometries_to_array(geom_from_wkt('GeometryCollection (Polygon ((5 8, 4 1, 3 2, 5 8)),LineString (3 2, 4 2))'))", "returns":"an array of a polygon and a line geometries"},
10+
"examples": [{ "expression":"geometries_to_array(geom_from_wkt('MultiPoint (1 2, 5 21)'))", "returns":"An array containing 'Point (1 2)' and 'Point (5 21)'"},
11+
{ "expression":"geometries_to_array(geom_from_wkt('GeometryCollection (Polygon ((5 8, 4 1, 3 2, 5 8)),LineString (3 2, 4 2))'))", "returns":"an array of a polygon and a line geometries"},
1112
{ "expression":"geom_to_wkt(geometries_to_array(geom_from_wkt('GeometryCollection (Polygon ((5 8, 4 1, 3 2, 5 8)),LineString (3 2, 4 2))'))[0])", "returns":"'Polygon ((5 8, 4 1, 3 2, 5 8))'"},
1213
{ "expression":"geometries_to_array(geom_from_wkt('MULTIPOLYGON(((5 5,0 0,0 10,5 5)),((5 5,10 10,10 0,5 5))'))", "returns":"an array of two polygon geometries"}],
1314
"tags": [ "split", "convert", "separate", "collection", "multi", "part" ]

0 commit comments

Comments
 (0)