]> granicus.if.org Git - postgis/commitdiff
Move over ST_NDims and ST_Dimension to new reference section
authorRegina Obe <lr@pcorp.us>
Thu, 4 Sep 2008 12:40:51 +0000 (12:40 +0000)
committerRegina Obe <lr@pcorp.us>
Thu, 4 Sep 2008 12:40:51 +0000 (12:40 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2937 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference.xml
doc/reference_new.xml

index 17df10ccf5a9f9b1a94f3d7ba8189ff55a8539c6..9d5c7ec88a20adcd8d5333b0c46fca22a00aff60 100644 (file)
       <title>Geometry Accessors</title>
 
       <variablelist>
-        <varlistentry>
-          <term>ST_Dimension(geometry)</term>
-
-          <listitem>
-            <para>The inherent dimension of this Geometry object, which must
-            be less than or equal to the coordinate dimension. OGC SPEC
-            s2.1.1.1 - returns 0 for points, 1 for lines, 2 for polygons, and
-            the largest dimension of the components of a
-            GEOMETRYCOLLECTION.</para>
-
-            <programlisting>SELECT ST_Dimension('GEOMETRYCOLLECTION(LINESTRING(1 1,0 0),POINT(0 0))'); 
-ST_Dimension 
------------ 
-1</programlisting>
-          </listitem>
-        </varlistentry>
-
         <varlistentry>
           <term>ST_IsEmpty(geometry)</term>
 
@@ -1606,16 +1589,6 @@ WHERE n*100.00/length &lt; 1;
             linkend="dropbbox">dropBBOX()</link> to control caching.</para>
           </listitem>
         </varlistentry>
-
-        <varlistentry id="ndims">
-          <term>ST_ndims(geometry)</term>
-
-          <listitem>
-            <para>Returns number of dimensions of the geometry as a small int.
-            Values are: 2,3 or 4.</para>
-          </listitem>
-        </varlistentry>
-
         <varlistentry>
           <term>ST_nrings(geometry)</term>
 
@@ -1901,16 +1874,6 @@ WHERE n*100.00/length &lt; 1;
         </listitem>
       </varlistentry>
 
-      <varlistentry>
-        <term>ST_Dimension</term>
-
-        <listitem>
-          <para>Return the dimension of the ST_Geometry value.</para>
-
-          <para>SQL-MM 3: 5.1.2</para>
-        </listitem>
-      </varlistentry>
-
       <varlistentry>
         <term>ST_Disjoint</term>
 
index 4ba187be8d6e89e60bf66615653984736664b5ae..ea9d73c535b9ee630faa1e1043de6081336d0ce5 100644 (file)
@@ -1682,8 +1682,57 @@ POINT(1 2)
   </sect1>
    
   <sect1>
-    <title>Geometry Accessors</title>  
+    <title>Geometry Accessors</title>                  
+    <refentry id="ST_Dimension">
+      <refnamediv>
+        <refname>ST_Dimension</refname>
+    
+        <refpurpose>The inherent dimension of this Geometry object, which must
+            be less than or equal to the coordinate dimension. </refpurpose>
+      </refnamediv>
+    
+      <refsynopsisdiv>
+        <funcsynopsis>
+          <funcprototype>
+            <funcdef>integer <function>ST_Dimension</function></funcdef>
+    
+            <paramdef><type>geometry </type> <parameter>g</parameter></paramdef>
+          </funcprototype>
+        </funcsynopsis>
+      </refsynopsisdiv>
+    
+      <refsection>
+        <title>Description</title>
     
+        <para>The inherent dimension of this Geometry object, which must
+            be less than or equal to the coordinate dimension. OGC SPEC
+            s2.1.1.1 - returns 0 for <varname>POINT</varname>, 1 for <varname>LINESTRING</varname>, 2 for <varname>POLYGON</varname>, and
+            the largest dimension of the components of a
+            <varname>GEOMETRYCOLLECTION</varname>.</para>
+    
+        <para><inlinemediaobject>
+            <imageobject>
+              <imagedata fileref="images/check.png" />
+            </imageobject>
+          </inlinemediaobject> This method implements the SQL/MM specification:
+        SQL-MM 3: 5.1.2</para>
+      </refsection>
+    
+      <refsection>
+        <title>Examples</title>
+    
+         <programlisting>SELECT ST_Dimension('GEOMETRYCOLLECTION(LINESTRING(1 1,0 0),POINT(0 0))'); 
+ST_Dimension 
+----------- 
+1</programlisting>
+       </refsection>
+               <refsection>
+                       <title>See Also</title>
+                       
+                       <para><xref linkend="ST_NDims" /></para>
+               </refsection>
+       </refentry>
+       
     <refentry id="ST_EndPoint">
       <refnamediv>
         <refname>ST_EndPoint</refname>
@@ -1964,6 +2013,47 @@ postgis=# SELECT ST_IsClosed('MULTIPOINT((0 0), (1 1))'::geometry);
         <para><xref linkend="ST_IsRing" /></para>
       </refsection>
     </refentry>
+               
+       <refentry id="ST_NDims">
+               <refnamediv>
+                       <refname>ST_NDims</refname>
+                       <refpurpose>Returns coordinate dimension of the geometry as a small int.
+            Values are: 2,3 or 4.</refpurpose>
+               </refnamediv>
+               
+               <refsynopsisdiv>
+               <funcsynopsis>
+                 <funcprototype>
+                       <funcdef>integer <function>ST_NDims</function></funcdef>
+                       <paramdef><type>geometry </type> <parameter>g1</parameter></paramdef>
+                 </funcprototype>
+               </funcsynopsis>
+               </refsynopsisdiv>
+               
+               <refsection>
+                       <title>Description</title>
+                       
+                       <para>Returns the coordinate dimension of the geometry.  PostGIS supports 2 -  (x,y) , 
+                       3 -  (x,y,z) or 2D with measure - x,y,m, and 4 - 3D with measure space x,y,z,m</para>
+               </refsection>
+               
+               <refsection>
+                       <title>Examples</title>
+                       
+                       <programlisting>SELECT ST_NDims(ST_GeomFromText('POINT(1 1)')) As d2point, 
+       ST_NDims(ST_GeomFromEWKT('POINT(1 1 2)')) As d3point, 
+       ST_NDims(ST_GeomFromEWKT('POINTM(1 1 0.5)')) As d2pointm;
+
+        d2point | d3point | d2pointm
+---------+---------+----------
+       2 |       3 |        3
+                       </programlisting>
+               </refsection>
+               <refsection>
+                       <title>See Also</title>
+                       <para><xref linkend="ST_Dimension" />, <xref linkend="ST_GeomFromEWKT" /></para>
+               </refsection>
+       </refentry>
 
        <refentry id="ST_NPoints">
                <refnamediv>
@@ -4037,7 +4127,7 @@ FROM (SELECT ST_Buffer(ST_GeomFromText('POINT(1 0.5)'), 3)  As a,
          <refsection>
                <title>See Also</title>
        
-               <para><xref linkend="ST_Contains"/>, <xref linkend="ST_Crosses"/>, <xref linkend="ST_Intersects"/></para>
+               <para><xref linkend="ST_Contains"/>, <xref linkend="ST_Crosses"/>, <xref linkend="ST_Dimension"/>, <xref linkend="ST_Intersects"/></para>
          </refsection>
        </refentry>
        <refentry id="ST_Perimeter">