]> granicus.if.org Git - postgis/commitdiff
make topoelementarray examples make more sense
authorRegina Obe <lr@pcorp.us>
Mon, 12 Sep 2011 04:56:05 +0000 (04:56 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 12 Sep 2011 04:56:05 +0000 (04:56 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7839 b70326c6-7e19-0410-871a-916f4a2858ee

doc/extras_topology.xml

index 98c0f6ee41df645b8e99bb93cb0f34a8fb482fe6..984399e6c211886a1f27fa3f1cd5858f4093dfc4 100644 (file)
@@ -168,24 +168,24 @@ ERROR:  value for domain topology.topoelement violates check constraint "dimensi
                  </refsection>
             <refsection>
                 <title>Examples</title>
-                 <programlisting>SELECT '{{1,2},{3,4}}'::topology.topoelementarray As tea;
+                 <programlisting>SELECT '{{1,2},{4,3}}'::topology.topoelementarray As tea;
   tea
 -------
-{{1,2},{3,4}}
+{{1,2},{4,3}}
 
 -- more verbose equivalent --
-SELECT ARRAY[ARRAY[1,2], ARRAY[3,4]]::topology.topoelementarray As tea;
+SELECT ARRAY[ARRAY[1,2], ARRAY[4,3]]::topology.topoelementarray As tea;
 
   tea
 -------
-{{1,2},{3,4}}
+{{1,2},{4,3}}
 
 --using the array agg function packaged with topology --
 SELECT topology.TopoElementArray_Agg(ARRAY[e,t]) As tea
-  FROM generate_series(1,3) As e CROSS JOIN generate_series(1,4) As t;
+  FROM generate_series(1,4) As e CROSS JOIN generate_series(1,3) As t;
   tea
 --------------------------------------------------------------------------
-{{1,1},{1,2},{1,3},{1,4},{2,1},{2,2},{2,3},{2,4},{3,1},{3,2},{3,3},{3,4}}
+{{1,1},{1,2},{1,3},{2,1},{2,2},{2,3},{3,1},{3,2},{3,3},{4,1},{4,2},{4,3}}
                  </programlisting>
                  <programlisting>SELECT '{{1,2,4},{3,4,5}}'::topology.topoelementarray As tea;
 ERROR:  value for domain topology.topoelementarray violates check constraint "dimensions"