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>119 / 310DescriptionAdds a point to a LineString before point (0-based index). Third parameter can be omitted or set to -1 for appending.Availability: 1.1.0This function supports 3d and will not drop the z-index.Examples--guarantee all linestrings in a table are closed--by adding the start point of each linestring to the end of the line string--only for those that are not closedUPDATE sometableSET the_geom = ST_AddPoint(the_geom, ST_StartPoint(the_geom))FROM sometableWHERE ST_IsClosed(the_geom) = false;--Adding point to a 3-d lineSELECT ST_AsEWKT(ST_AddPoint(ST_GeomFromEWKT(’LINESTRING(0 0 1, 1 1 1)’), ST_MakePoint ←↪(1, 2, 3)));--resultst_asewkt----------LINESTRING(0 0 1,1 1 1,1 2 3)See AlsoST_RemovePoint, ST_SetPoint7.5.2 ST_AffineST_Affine — Applies a 3d affine transformation to the geometry to do things like translate, rotate, scale in one step.Synopsisgeometry ST_Affine(geometry geomA, float a, float b, float c, float d, float e, float f, float g, float h, float i, float xoff, float yoff,float zoff);geometry ST_Affine(geometry geomA, float a, float b, float d, float e, > float xoff, float yoff);DescriptionApplies a 3d affine transformation to the geometry to do things like translate, rotate, scale in one step.Version 1: The callST_Affine(geom, a, b, c, d, e, f, g, h, i, xoff, yoff, zoff)represents the transformation matrix/ a b c xoff \| d e f yoff || g h i zoff |\ 0 0 0 1 /

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

Saved successfully!

Ooh no, something went wrong!