]> granicus.if.org Git - postgis/commitdiff
make igst index link tag friendly and provide example of nd index.
authorRegina Obe <lr@pcorp.us>
Mon, 23 Apr 2012 05:48:25 +0000 (05:48 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 23 Apr 2012 05:48:25 +0000 (05:48 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9654 b70326c6-7e19-0410-871a-916f4a2858ee

doc/using_postgis_dataman.xml

index 800bf2fdb02bdf1df5ba0b7aa4877188571ace23..9769e68d0bcc823aa15d1143506395ecdf2c7ee0 100644 (file)
@@ -2231,7 +2231,7 @@ WHERE
          </listitem>
        </itemizedlist>
 
-       <sect2>
+       <sect2 id="gist_indexes">
          <title>GiST Indexes</title>
 
          <para>GiST stands for "Generalized Search Tree" and is a generic form of
@@ -2248,6 +2248,8 @@ WHERE
          follows:</para>
 
          <para><programlisting>CREATE INDEX [indexname] ON [tablename] USING GIST ( [geometryfield] ); </programlisting></para>
+         <para>The above syntax will always build a 2D-index.  To get the an n-dimensional index supported in PostGIS 2.0+ for the geometry type, you can create one using this syntax</para>
+         <programlisting>CREATE INDEX [indexname] ON [tablename] USING GIST ([geometryfield] gist_geometry_ops_nd);</programlisting>
 
          <para>Building a spatial index is a computationally intensive exercise:
          on tables of around 1 million rows, on a 300MHz Solaris machine, we have