제목

CG_Scale — Scales a geometry uniformly in all dimensions by a given factor.

요약

geometry CG_Scale(geometry geom, float8 factor);

설명

Scales the input geometry geom by a uniform scale factor in all dimensions (X, Y, and Z). The scaling is performed relative to the origin point (0,0,0).

Availability: 3.6.0 - requires SFCGAL >= 2.0.0

This method needs SFCGAL backend.

예시

Code
SELECT CG_Scale('LINESTRING(1 1,2 2)', 2);
래스터 출력
LINESTRING(2 2,4 4)
Figure
Geometry figure for visual-cg-scale-01