Name

ST_OrientedEnvelope — Returns a minimum rotated rectangle enclosing a geometry.

Synopsis

geometryST_OrientedEnvelope( geometry geom );

Description

Returns a mimimum rotated rectangle enclosing a geometry. Note that more than one minimum rotated rectangle may exist. May return a Point or LineString in the case of degenerate inputs.

Availability - 2.5.0

See Also

ST_Envelope ST_MinimumBoundingCircle

Examples

				SELECT ST_AsText(ST_OrientedEnvelope('MULTIPOINT ((0 0), (-1 -1), (3 2))'));

				st_astext
				------------------------------------------------
				POLYGON((3 2,2.88 2.16,-1.12 -0.84,-1 -1,3 2))