CG_3DScaleAroundCenter — Scales a geometry in 3D space around a specified center point.
geometry CG_3DScaleAroundCenter(
geometry geom, float8 factorX, float8 factorY, float8 factorZ, float8 centerX, float8 centerY, float8 centerZ)
;
Scales the input geometry geom
by different factors along the X, Y, and Z axes, relative to a specified center point (centerX
, centerY
, centerZ
).
Availability: 3.6.0 - requires SFCGAL >= 2.0.0
Cette méthode nécessite le backend SFCGAL.
Cette fonction prend en charge la 3D et ne supprime pas l'indice z.
SELECT ST_AsText(CG_3DScaleAroundCenter('POINT(2 2 2)', 0.5, 0.5, 0.5, 1, 1, 1)); -- Result: POINT(1.5 1.5 1.5)