19 Spatial Aggregate Functions

This chapter contains reference and usage information for the spatial aggregate functions, which are listed in Table 19-1.

Table 19-1 Spatial Aggregate Functions

Method Description

SDO_AGGR_CENTROID

Returns a geometry object that is the centroid ("center of gravity") of the specified geometry objects.

SDO_AGGR_CONCAT_LINES

Returns a geometry that concatenates the specified line or multiline geometries.

SDO_AGGR_CONVEXHULL

Returns a geometry object that is the convex hull of the specified geometry objects.

SDO_AGGR_LRS_CONCAT

Returns an LRS geometry object that concatenates specified LRS geometry objects.

SDO_AGGR_MBR

Returns the minimum bounding rectangle of the specified geometries.

SDO_AGGR_SET_UNION

Returns the aggregate union of all the geometry objects from an input VARRAY of SDO_GEOMETRY objects or a REF cursor.

SDO_AGGR_UNION

Returns a geometry object that is the topological union (OR operation) of the specified geometry objects.

See the usage information about spatial aggregate functions in Spatial Aggregate Functions.

Most of these aggregate functions accept a parameter of type SDOAGGRTYPE, which is described in SDOAGGRTYPE Object Type.

Note:

Spatial aggregate functions are supported for two-dimensional geometries only, except for SDO_AGGR_MBR, which is supported for both two-dimensional and three-dimensional geometries.