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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PostGIS</strong> <strong>1.5.8</strong> <strong>Manual</strong>132 / 310Examples--Rotate a line 90 degrees along z-axisSELECT ST_AsEWKT(ST_RotateZ(ST_GeomFromEWKT(’LINESTRING(1 2 3, 1 1 1)’), pi()/2));st_asewkt---------------------------LINESTRING(-2 1 3,-1 1 1)--Rotate a curved circle around z-axisSELECT ST_AsEWKT(ST_RotateZ(the_geom, pi()/2))FROM (SELECT ST_LineToCurve(ST_Buffer(ST_GeomFromText(’POINT(234 567)’), 3)) As the_geom)As foo;←↪st_asewkt-----------------------------------------------------------------------------------------------------CURVEPOLYGON(CIRCULARSTRING(-567 237,-564.87867965644 236.12132034356,-564234,-569.12132034356 231.87867965644,-567 237))←↪See AlsoST_Affine, ST_RotateX, ST_RotateY, Rotate around Point, Create Ellipse functions7.5.19 ST_ScaleST_Scale — Scales the geometry to a new size by multiplying the ordinates with the parameters. Ie: ST_Scale(geom, Xfactor,Yfactor, Zfactor).Synopsisgeometry ST_Scale(geometry geomA, float XFactor, float YFactor, float ZFactor);geometry ST_Scale(geometry geomA, float XFactor, float YFactor);DescriptionScales the geometry to a new size by multiplying the ordinates with the parameters. Ie: ST_Scale(geom, Xfactor, Yfactor,Zfactor).NoteST_Scale(geomA, XFactor, YFactor, ZFactor) is short-hand for ST_Affine(geomA, XFactor,0, 0, 0, YFactor, 0, 0, 0, ZFactor, 0, 0, 0).NotePrior to 1.3.4, this function crashes if used with geometries that contain CURVES. This is fixed in 1.3.4+Availability: 1.1.0.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!