12.07.2015 Views

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

PostGIS 1.5.8 Manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>130 / 310See AlsoST_Affine, ST_RotateX, ST_RotateY, ST_RotateZ7.5.16 ST_RotateXST_RotateX — Rotate a geometry rotRadians about the X axis.Synopsisgeometry ST_RotateX(geometry geomA, float rotRadians);DescriptionRotate a geometry geomA - rotRadians about the X axis.NoteST_RotateX(geomA, rotRadians) is short-hand for ST_Affine(geomA, 1, 0, 0, 0, cos(rot-Radians), -sin(rotRadians), 0, sin(rotRadians), cos(rotRadians), 0, 0, 0).Availability: 1.1.2. Name changed from RotateX to ST_RotateX in 1.2.2This function supports 3d and will not drop the z-index.Examples--Rotate a line 90 degrees along x-axisSELECT ST_AsEWKT(ST_RotateX(ST_GeomFromEWKT(’LINESTRING(1 2 3, 1 1 1)’), pi()/2));st_asewkt---------------------------LINESTRING(1 -3 2,1 -1 1)See AlsoST_Affine, ST_RotateY, ST_RotateZ7.5.17 ST_RotateYST_RotateY — Rotate a geometry rotRadians about the Y axis.Synopsisgeometry ST_RotateY(geometry geomA, float rotRadians);

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!