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>131 / 310DescriptionRotate a geometry geomA - rotRadians about the y axis.NoteST_RotateY(geomA, rotRadians) is short-hand for ST_Affine(geomA, cos(rotRadians), 0,sin(rotRadians), 0, 1, 0, -sin(rotRadians), 0, cos(rotRadians), 0, 0, 0).Availability: 1.1.2. Name changed from RotateY to ST_RotateY in 1.2.2This function supports 3d and will not drop the z-index.Examples--Rotate a line 90 degrees along y-axisSELECT ST_AsEWKT(ST_RotateY(ST_GeomFromEWKT(’LINESTRING(1 2 3, 1 1 1)’), pi()/2));st_asewkt---------------------------LINESTRING(3 2 -1,1 1 -1)See AlsoST_Affine, ST_RotateX, ST_RotateZ, Rotate around Point, Create Ellipse functions7.5.18 ST_RotateZST_RotateZ — Rotate a geometry rotRadians about the Z axis.Synopsisgeometry ST_RotateZ(geometry geomA, float rotRadians);DescriptionRotate a geometry geomA - rotRadians about the Z axis.NoteST_RotateZ(geomA, rotRadians) is short-hand for SELECT ST_Affine(geomA, cos(rotRadians),-sin(rotRadians), 0, sin(rotRadians), cos(rotRadians), 0, 0, 0, 1, 0, 0,0).Availability: 1.1.2. Name changed from RotateZ to ST_RotateZ in 1.2.2NotePrior to 1.3.4, this function crashes if used with geometries that contain CURVES. This is fixed in 1.3.4+This function supports 3d and will not drop the z-index.This method supports Circular Strings and Curves

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

Saved successfully!

Ooh no, something went wrong!