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>128 / 3107.5.12 ST_MultiST_Multi — Returns the geometry as a MULTI* geometry. If the geometry is already a MULTI*, it is returned unchanged.Synopsisgeometry ST_Multi(geometry g1);DescriptionReturns the geometry as a MULTI* geometry. If the geometry is already a MULTI*, it is returned unchanged.ExamplesSELECT ST_AsText(ST_Multi(ST_GeomFromText(’POLYGON((743238 2967416,743238 2967450,743265 2967450,743265.625 2967416,743238 2967416))’)));st_astext-----------------------------------------------------------------------------------------------MULTIPOLYGON(((743238 2967416,743238 2967450,743265 2967450,743265.625 2967416,743238 2967416)))(1 row)See AlsoST_AsText7.5.13 ST_RemovePointST_RemovePoint — Removes point from a linestring. Offset is 0-based.Synopsisgeometry ST_RemovePoint(geometry linestring, integer offset);DescriptionRemoves point from a linestring. Useful for turning a closed ring into an open line stringAvailability: 1.1.0This function supports 3d and will not drop the z-index.Examples--guarantee no LINESTRINGS are closed--by removing the end point. The below assumes the_geom is of type LINESTRINGUPDATE sometableSET the_geom = ST_RemovePoint(the_geom, ST_NPoints(the_geom) - 1)FROM sometableWHERE ST_IsClosed(the_geom) = true;

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

Saved successfully!

Ooh no, something went wrong!