Name

Box2D — Returns a BOX2D representing the 2D extent of a geometry.

Synopsis

box2d Box2D(geometry geom);

Description

Returns a box2d representing the 2D extent of the geometry.

Паляпшэнні: 2.0.0 - дададзена падтрымка шматгранных паверхняў, трохкутнікаў і TIN.

This method supports Circular Strings and Curves.

This function supports Polyhedral surfaces.

This function supports Triangles and Triangulated Irregular Network Surfaces (TIN).

Examples

Code
SELECT Box2D('LINESTRING(1 2,3 4,5 6)'::geometry);
Output
BOX(1 2,5 6)
Figure
Geometry figure for visual-box2d-01
Code
SELECT Box2D('CIRCULARSTRING(220268 150415,220227 150505,220227 150406)'::geometry);
Output
BOX(220186.99512189245 150406,220288.24878054656 150506.12682932706)
Figure
Geometry figure for visual-box2d-02