These functions are aggregates and therefore may require GROUP BY. They are the equivalent of AVG(), SUM() ...
1 geo.aggrUnion
Returns the geometry that is the topological union of the specified geometric objects. When using Oracle, you have to keep in mind that the tolerance value can affect the topology of the geometry obtained:
<geo.aggrUnion
ora_isline='y|n'
ora_tol='ora_tol'
pg_collect='y'
>
<geometry_column /> *
</geo.aggrUnion>
Attributes | |||||
---|---|---|---|---|---|
Name | Type | Required | Default | Description | |
Aora_isline | string | n | Allows you to specify that the input topology is lines. It is only used in Oracle. It serves to use a more efficient function. | ||
Aora_tol | decimal | 0.05 | Tolerance. Only used in Oracle. | ||
Apg_collect | string | n | It serves to indicate that, in Postgres, the ST_Collect function should be used instead of ST_Union. |
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Egeometry_column | geometry |
Example
Copy
<select> <columns> <geo.aggrUnion pg_collect='y'>a.type, a.geometry_col</geo.aggrUnion> </columns> <from table='buildings' alias='a' > </from> <group>a.type</group> </select>
2 geo.aggrMbr
Returns the smallest rectangle that contains the specified geometries.
<geo.aggrMbr>
<geometry_column /> *
</geo.aggrMbr>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Egeometry_column | geometry |
Example
Copy
<select> <columns> <geo.aggrMbr>a.type, a.geometry_col</geo.aggrMbr> </columns> <from table='buildings' alias='a' > </from> <group>a.type</group> </select>
3 geo.aggrConvexHull
Returns the minimum convex geometry that contains all the geometries passed as a parameter. It can be thought of as the geometry that is obtained when an elastic band is put around the set of geometries.
<geo.aggrConvexHull>
<geometry_column /> *
</geo.aggrConvexHull>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Egeometry_column | geometry |
Example
Copy
<select> <columns> <geo.aggrConvexHull tol='0.005'>geometry_col</geo.aggrConvexHull> </columns> <from table='buildings' alias='a' > </from> <where> a.name = 'MACBA' </where> </select>