ST_Envelope
Signatures
Description
Returns the envelope of geom
as a Geometry, optionally setting its SRID to
srid
. The default SRID is the same as that of geom
.
Input type |
Return type |
A POINT |
POINT |
A line parallel to an axis |
A two-vertex LINESTRING |
Otherwise |
A POLYGON whose coordinates are (minx miny, maxx miny, maxx maxy, minx maxy, minx miny) |
Implements the OpenGIS Simple Features Implementation Specification for
SQL version
1.2.1.
Examples
Setting or preserving the SRID
See also