Name

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

Synopsis

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

Descrizione

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

Questo metodo richiede il backend SFCGAL.

Questa funzione supporta il 3d e non distrugge gli z-index.

Esempi

SELECT ST_AsText(CG_3DTranslate('POINT(1 1 1)', 1, -1, 2));
-- Result: POINT(2 0 3)

Si veda anche

CG_Translate, ST_Translate