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>249 / 310See AlsoLockRow7.12 Miscellaneous Functions7.12.1 ST_AccumST_Accum — Aggregate. Constructs an array of geometries.Synopsisgeometry[] ST_Accum(geometry set geomfield);DescriptionAggregate. Constructs an array of geometries.This function supports 3d and will not drop the z-index.This method supports Circular Strings and CurvesExamplesSELECT (ST_Accum(the_geom)) As all_em, ST_AsText((ST_Accum(the_geom))[1]) As grabone,(ST_Accum(the_geom))[2:4] as grab_restFROM (SELECT ST_MakePoint(a*CAST(random()*10 As integer), a*CAST(random()*10 Asinteger), a*CAST(random()*10 As integer)) As the_geomFROM generate_series(1,4) a) As foo;←↪all_em|grabone| grab_rest-------------------------------------------------------------------------------+{0101000080000000000000144000000000000024400000000000001040:010100008000000000000018400000000000002C400000000000003040:0101000080000000000000354000000000000038400000000000001840:010100008000000000000040400000000000003C400000000000003040} |POINT(5 10) | {010100008000000000000018400000000000002C400000000000003040:0101000080000000000000354000000000000038400000000000001840:010100008000000000000040400000000000003C400000000000003040}(1 row)See AlsoST_Collect7.12.2 Box2DBox2D — Returns a BOX2D representing the maximum extents of the geometry.

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

Saved successfully!

Ooh no, something went wrong!