Commit 29f0a3e4 authored by Paul Ramsey's avatar Paul Ramsey

#3123, add example using array input form of function

git-svn-id:[email protected] b70326c6-7e19-0410-871a-916f4a2858ee
parent f734cbab
......@@ -1222,7 +1222,17 @@ SELECT ST_AsTWKB('LINESTRING(1 1,5 5)'::geometry);
<para>To create an aggregate TWKB object including identifiers aggregate the desired geometries and objects first, using "array_agg()", then call the appropriate TWKB function.
SELECT ST_AsTWKB(array_agg(geom), array_agg(gid)) FROM mytable;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment