From 49290e8c707ceec1d28aaa4ecd2efb557815a47a Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 16 Oct 2012 16:08:02 +0000 Subject: [PATCH] Enhance documentation about TopoElement domain git-svn-id: http://svn.osgeo.org/postgis/trunk@10437 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/extras_topology.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/doc/extras_topology.xml b/doc/extras_topology.xml index 5ec2bad95..53fb2e925 100644 --- a/doc/extras_topology.xml +++ b/doc/extras_topology.xml @@ -136,10 +136,17 @@ Description - An array of 2 integers used to represent the id and type of a topology primitive or the id and layer of a TopoGeometry. Sets of such pairs are used to define TopoGeometry objects (either simple or hierarchical). + An array of 2 integers used to represent the id (first element) and type (second element) of a topology primitive or the id (first element) and layer (second element) of a TopoGeometry. Sets of such pairs are used to define TopoGeometry objects (either simple or hierarchical). Examples + +SELECT te[1] AS id, te[2] AS type FROM +( SELECT ARRAY[1,2]::topology.topoelement AS te ) f; + id | type +----+------ + 1 | 2 + SELECT ARRAY[1,2]::topology.topoelement; te ------- -- 2.40.0