Apply an affine transformation to the given geometry.ST_Affine has 2 overloaded signatures:Based on the invoked function, the following transformation is applied:x = a * x + b * y + c * z + xOff OR x = a * x + b * y + xOffy = d * x + e * y + f * z + yOff OR y = d * x + e * y + yOffz = g * x + f * y + i * z + zOff OR z = g * x + f * y + zOffIf the given geometry is empty, the result is also empty.
Signatures
ST_Affine(geometry, a, b, c, d, e, f, g, h, i, xOff, yOff, zOff)
ST_Affine(geometry, a, b, d, e, xOff, yOff)
Parameters
Geometry
required
The input geometry to transform.
Double
required
The a coefficient of the affine transformation matrix.
Double
required
The b coefficient of the affine transformation matrix.
Double
The c coefficient of the affine transformation matrix (3D variant only).
Double
required
The d coefficient of the affine transformation matrix.
Double
required
The e coefficient of the affine transformation matrix.
Double
The f coefficient of the affine transformation matrix (3D variant only).
Double
The g coefficient of the affine transformation matrix (3D variant only).
Double
The h coefficient of the affine transformation matrix (3D variant only).
Double
The i coefficient of the affine transformation matrix (3D variant only).