This function returns the bounding box of a pcpatch object as a geometry object.
Syntax
geometry ST_envelopeGeometry(pcpatch pc);
Parameters
Parameter | Description |
---|---|
pc | The pcpatch object. |
Description
A bounding box is a 2D geometry object of Ganos Geometry.
Examples
SELECT ST_AsText(ST_EnvelopeGeometry(pa)) FROM patches LIMIT 1;
------------------------------
POLYGON((-126.99 45.01,-126.99 45.09,-126.91 45.09,-126.91 45.01,-126.99 45.01))
CREATE INDEX ON patches USING GIST(ST_EnvelopeGeometry(patch));