ST_BoundingDiagonal
Updated at:
Returns the diagonal of the object.
Syntax
geometry ST_BoundingDiagonal(meshgeom geom, boolean fits default false);
geometry ST_BoundingDiagonal(sfmesh sfmeshObject, boolean fits default false);Parameters
Parameter Name | Description |
geom | The meshgeom object. |
sfmeshObject | The sfmesh object. |
fits | Specifies whether to perform an accurate calculation. |
Description
This function returns the diagonal of an object. The returned diagonal is of the geometry type.
Examples
select ST_AsText(ST_BoundingDiagonal('MESHGEOM(PATCH(INDEXSURFACE(VERTEX(0 0 2,0 10 3,10 10 1,10 0 1), INDEX((0,1,2),(1,2,3)))))'::meshgeom));
------------------------------
LINESTRING Z (0 0 1,10 10 3) Is this page helpful?