Details
-
New Feature
-
Status: In Testing (View Workflow)
-
Major
-
Resolution: Unresolved
Description
The GIS function ST_Collect takes as input multiple geometries and returns the aggregation of the distinct geometry arguments.
This function also supports the DISTINCT option. If the DISTINCT case is used, it returns the aggregation of the distinct geometry arguments.
The resulting value type is choosen using the following policy:
- If all arguments are Point values, the result is a MultiPoint value.
- If all arguments are LineString values, the result is a MultiLineString value.
- If all arguments are Polygon values, the result is a MultiPolygon value.
- Otherwise, the result is a GeometryCollection value.
If there are multiple geometry arguments and those arguments are in the same SRS, the return value is in that SRS. If those arguments are not in the same SRS, an ER_GIS_DIFFERENT_SRIDS_AGGREGATION error occurs.
Attachments
Issue Links
- causes
-
MDEV-35102 CREATE TABLE AS SELECT ST_collect ... does not work
- In Review
- is part of
-
MDEV-17398 Implement Geographic functions available in MySQL 8.0
- Stalled
-
MDEV-34120 GSoC 2024, Spatial (GIS) functions in MariaDB
- In Testing