Skip to main content
Returns a homogeneous multi-geometry from a given geometry collection. The type numbers are:
  1. POINT
  2. LINESTRING
  3. POLYGON
If the type parameter is omitted a multi-geometry of the highest dimension is returned. ST_CollectionExtract

Signatures

Parameters

A
Geometry
required
The input geometry.
type
Integer
The output type.

Return type

The resulting geometry.

Example