Name

ST_TransScale — Translates a geometry, and then scales it.

Synopsis

geometry ST_TransScale(bytea Geometry, double Tx, double Ty, double Tz, double Xscale, double Yscale, double Zscale);

geometry ST_TransScale(bytea Geometry, double Tx, double Ty, double Xscale, double Yscale);

Alias

TransScale

Description

Translates a geometry, and then scales it.

Transformation matrix

Equations to transform the vertices

[Note]

ST_TransScale (geomA, Tx, Ty, Tz, Xscale,Yscale,Zscale) is an abreviation for the method:

ST_Affine(geomA, Xscale, 0, 0, 0, Yscale, 0, 0, 0, Zscale, Tx*Xscale, Ty*Yscale, Tz*Zscale)

Coordinate Dimensions
2D3DM
Spatial Standards Support
OGC SFS for SQL. 1.1 (1999)OGC SFS for SQL. 1.1.0 (2005)OGC SFS for SQL. 1.2.0 (2006)SQL-MM Part 3
----

Examples

SELECT ST_AsEWKT(ST_TransScale(ST_GeomFromEWKT('POINT (1 1 1 4)'),2,3,4,100,200,300));
--Result
POINT (300 800 1500 4)

Related functions

ST_Affine, ST_Scale, ST_Translate