Name

ST_SetRotation — 래스터의 회전각을 라디안으로 설정합니다.

Synopsis

float8 ST_SetRotation(raster rast, float8 rotation);

설명

래스터를 균일하게 회전시킵니다. 회전각은 라디안 단위입니다. 자세한 내용은 월드 파일 을 참조하십시오.

예시

SELECT
  ST_ScaleX(rast1), ST_ScaleY(rast1), ST_SkewX(rast1), ST_SkewY(rast1),
  ST_ScaleX(rast2), ST_ScaleY(rast2), ST_SkewX(rast2), ST_SkewY(rast2)
FROM (
  SELECT ST_SetRotation(rast, 15) AS rast1, rast as rast2 FROM dummy_rast
) AS foo;
      st_scalex      |      st_scaley      |      st_skewx      |      st_skewy      | st_scalex | st_scaley | st_skewx | st_skewy
---------------------+---------------------+--------------------+--------------------+-----------+-----------+----------+----------
   -1.51937582571764 |   -2.27906373857646 |   1.95086352047135 |   1.30057568031423 |         2 |         3 |        0 |        0
 -0.0379843956429411 | -0.0379843956429411 | 0.0325143920078558 | 0.0325143920078558 |      0.05 |     -0.05 |        0 |        0
                

참고

ST_Rotation, ST_ScaleX, ST_ScaleY, ST_SkewX, ST_SkewY