(multi)geometry, returns a
(multi)geometry consisting only of elements of the specified
dimension. Dimension numbers are 1 for
POINT, 2 for
LINESTRING and 3 for
Sub-geometries that are not the specified type are ignored.
If there are no sub-geometries of the right type, an
EMPTY geometry will be returned.
POLYGONs are returned.