You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/snowflake/vector-data/AggregateFunction.md
+18-9Lines changed: 18 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,11 +20,14 @@
20
20
!!!note
21
21
Please always keep the schema name `SEDONA` (e.g., `SEDONA.ST_GeomFromWKT`) when you use Sedona functions to avoid conflicting with Snowflake's built-in functions.
22
22
23
-
## ST_Envelope_Aggr
23
+
## ST_Envelope_Agg
24
24
25
25
Introduction: Return the entire envelope boundary of all geometries in A
26
26
27
-
Format: `ST_Envelope_Aggr (A:geometryColumn)`
27
+
Format: `ST_Envelope_Agg (A:geometryColumn)`
28
+
29
+
!!!note
30
+
This function was previously named `ST_Envelope_Aggr`, which is deprecated since `v1.8.1`.
28
31
29
32
SQL example:
30
33
@@ -36,7 +39,7 @@ WITH src_tbl AS (
36
39
)
37
40
SELECTsedona.ST_AsText(envelope)
38
41
FROM src_tbl,
39
-
TABLE(sedona.ST_Envelope_Aggr(src_tbl.geom) OVER (PARTITION BY 1));
42
+
TABLE(sedona.ST_Envelope_Agg(src_tbl.geom) OVER (PARTITION BY 1));
40
43
```
41
44
42
45
Output:
@@ -45,11 +48,14 @@ Output:
45
48
POLYGON ((0 0, 0 1.5, 1.5 1.5, 1.5 0, 0 0))
46
49
```
47
50
48
-
## ST_Intersection_Aggr
51
+
## ST_Intersection_Agg
49
52
50
53
Introduction: Return the polygon intersection of all polygons in A
51
54
52
-
Format: `ST_Intersection_Aggr (A:geometryColumn)`
55
+
Format: `ST_Intersection_Agg (A:geometryColumn)`
56
+
57
+
!!!note
58
+
This function was previously named `ST_Intersection_Aggr`, which is deprecated since `v1.8.1`.
53
59
54
60
SQL example:
55
61
@@ -61,7 +67,7 @@ WITH src_tbl AS (
61
67
)
62
68
SELECTsedona.ST_AsText(intersected)
63
69
FROM src_tbl,
64
-
TABLE(sedona.ST_Intersection_Aggr(src_tbl.geom) OVER (PARTITION BY 1));
70
+
TABLE(sedona.ST_Intersection_Agg(src_tbl.geom) OVER (PARTITION BY 1));
65
71
```
66
72
67
73
Output:
@@ -70,11 +76,14 @@ Output:
70
76
POLYGON ((0.5 1, 1 1, 1 0.5, 0.5 0.5, 0.5 1))
71
77
```
72
78
73
-
## ST_Union_Aggr
79
+
## ST_Union_Agg
74
80
75
81
Introduction: Return the polygon union of all polygons in A
76
82
77
-
Format: `ST_Union_Aggr (A:geometryColumn)`
83
+
Format: `ST_Union_Agg (A:geometryColumn)`
84
+
85
+
!!!note
86
+
This function was previously named `ST_Union_Aggr`, which is deprecated since `v1.8.1`.
78
87
79
88
SQL example:
80
89
@@ -86,7 +95,7 @@ WITH src_tbl AS (
86
95
)
87
96
SELECTsedona.ST_AsText(unioned)
88
97
FROM src_tbl,
89
-
TABLE(sedona.ST_Union_Aggr(src_tbl.geom) OVER (PARTITION BY 1));
98
+
TABLE(sedona.ST_Union_Agg(src_tbl.geom) OVER (PARTITION BY 1));
Copy file name to clipboardExpand all lines: docs/api/sql/AggregateFunction.md
+19-10Lines changed: 19 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@
19
19
20
20
## ST_Collect_Agg
21
21
22
-
Introduction: Collects all geometries in a geometry column into a single multi-geometry (MultiPoint, MultiLineString, MultiPolygon, or GeometryCollection). Unlike `ST_Union_Aggr`, this function does not dissolve boundaries between geometries - it simply collects them into a multi-geometry.
22
+
Introduction: Collects all geometries in a geometry column into a single multi-geometry (MultiPoint, MultiLineString, MultiPolygon, or GeometryCollection). Unlike `ST_Union_Agg`, this function does not dissolve boundaries between geometries - it simply collects them into a multi-geometry.
23
23
24
24
Format: `ST_Collect_Agg (A: geometryColumn)`
25
25
@@ -49,18 +49,21 @@ SQL Example with GROUP BY
49
49
SELECT category, ST_Collect_Agg(geom) FROM geometries GROUP BY category
50
50
```
51
51
52
-
## ST_Envelope_Aggr
52
+
## ST_Envelope_Agg
53
53
54
54
Introduction: Return the entire envelope boundary of all geometries in A
55
55
56
-
Format: `ST_Envelope_Aggr (A: geometryColumn)`
56
+
Format: `ST_Envelope_Agg (A: geometryColumn)`
57
57
58
58
Since: `v1.0.0`
59
59
60
+
!!!note
61
+
This function was previously named `ST_Envelope_Aggr`, which is deprecated since `v1.8.1`.
0 commit comments