Name

ST_Box2D — Returns a BOX2D representing the maximum extents of the geometry.

Synopsis

box2d ST_Box2D(geometry geomA);

Description

Returns a BOX2D representing the maximum extents of the geometry.

This method supports Circular Strings and curves

Examples

SELECT ST_Box2D(ST_GeomFromText('LINESTRING(1 2, 3 4, 5 6)'));
	st_box2d
	---------
	BOX(1 2,5 6)

	SELECT ST_Box2D(ST_GeomFromText('CIRCULARSTRING(220268 150415,220227 150505,220227 150406)'));
	st_box2d
	--------
	BOX(220186.984375 150406,220288.25 150506.140625)
	

See Also

ST_Box3D, ST_GeomFromText