Skip to main content
Returns a geometry expanded from the bounding box of the input. The expansion can be specified in two ways:
  1. By individual axis using deltaX, deltaY, or deltaZ parameters.
  2. Uniformly across all axes using the uniformDelta parameter.
Things to consider when using this function:
  1. The uniformDelta parameter expands Z dimensions for XYZ geometries; otherwise, it only affects XY dimensions.
  2. For XYZ geometries, specifying only deltaX and deltaY will preserve the original Z dimension.
  3. If the input geometry has an M dimension then using this function will drop the said M dimension.
ST_Expand

Signatures

Parameters

geometry
Geometry
required
The input geometry.
deltaX
Double
The delta x value.
deltaY
Double
The delta y value.
deltaZ
Double
The delta z value.
uniformDelta
Double
The uniform delta value.

Return type

The resulting geometry.

Example