select st_affine (st_ewkt_read ('POLYGON((1 3,2 4,1 5,0 4,1 3), (1 3.5,1.5 4,1 4.5,0.5 4,1 3.5))'), 30, 3, 1, 0.3, 0.001, 0.002)