Nome

CG_3DTranslate — Translates (moves) a geometry by given offsets in 3D space.

Sinopse

geometry CG_3DTranslate(geometry geom, float8 deltaX, float8 deltaY, float8 deltaZ);

Descrição

Translates the input geometry geom by adding deltaX to the X coordinates, deltaY to the Y coordinates, and deltaZ to the Z coordinates.

Availability: 3.6.0 - requires SFCGAL >= 2.0.0

This method needs SFCGAL backend.

This function supports 3d and will not drop the z-index.

Exemplos

Code
SELECT CG_3DTranslate('POINT(1 1 1)', 1, -1, 2);
Raster Outputs
POINT Z (2 0 3)
Figure
Geometry figure for visual-cg-3dtranslate-01

Veja também

CG_Translate, ST_Translate