From: Regina Obe Date: Wed, 29 Oct 2008 18:32:27 +0000 (+0000) Subject: Make more pretty section names, move over ST_Accum and provide example. X-Git-Tag: 1.4.0b1~553 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a3339e303086dc2397d888f962258784c7b6af1;p=postgis Make more pretty section names, move over ST_Accum and provide example. git-svn-id: http://svn.osgeo.org/postgis/trunk@3215 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/reference.xml b/doc/reference.xml index 11c78fdce..43863b77e 100644 --- a/doc/reference.xml +++ b/doc/reference.xml @@ -654,14 +654,6 @@ Returns the requested maxima of a bounding box. - - - ST_Accum(geometry set) - - - Aggregate. Constructs an array of geometries. - - diff --git a/doc/reference_new.xml b/doc/reference_new.xml index 21279e307..e2e72e263 100644 --- a/doc/reference_new.xml +++ b/doc/reference_new.xml @@ -4872,7 +4872,7 @@ CREATE INDEX idx_the_geom_26986_parcels - + Geometry Outputs @@ -5489,7 +5489,7 @@ F000000000000000000000000000000000000000000000000'); - + Spatial Relationships and Measurements @@ -7841,7 +7841,7 @@ FROM (SELECT ST_Buffer(ST_GeomFromText('POINT(1 2)'), 10) As smallc, - + Geometry Processing Functions @@ -9469,8 +9469,70 @@ SELECT ST_AsEWKT((ST_Dump(the_geom)).geom) - + Misc + + + + ST_Accum + + Aggregate. Constructs an array of geometries. + + + + + + geometry[] ST_Accum + geometry set geomfield + + + + + + Description + + Aggregate. Constructs an array of geometries. + + + + + + + This function supports 3d and will not drop the z-index. + + + + + Examples + + SELECT (ST_Accum(the_geom)) As all_em, ST_AsText((ST_Accum(the_geom))[1]) As grabone, +(ST_Accum(the_geom))[2:4] as grab_rest + FROM (SELECT ST_MakePoint(a*CAST(random()*10 As integer), a*CAST(random()*10 As integer), a*CAST(random()*10 As integer)) As the_geom + FROM generate_series(1,4) a) As foo; + +all_em|grabone | grab_rest + +-------------------------------------------------------------------------------+ + + {0101000080000000000000144000000000000024400000000000001040: + 0101000080000000000 +00018400000000000002C400000000000003040: +0101000080000000000000354000000000000038400000000000001840: +010100008000000000000040400000000000003C400000000000003040} | + POINT(5 10) | {010100008000000000000018400000000000002C400000000000003040: + 0101000080000000000000354000000000000038400000000000001840: + 010100008000000000000040400000000000003C400000000000003040} +(1 row) + + + + + + See Also + + + + ST_Expand