]> granicus.if.org Git - postgis/commitdiff
moved ST_IsClosed to the new documentation template.
authorKevin Neufeld <kneufeld.ca@gmail.com>
Wed, 27 Aug 2008 04:34:20 +0000 (04:34 +0000)
committerKevin Neufeld <kneufeld.ca@gmail.com>
Wed, 27 Aug 2008 04:34:20 +0000 (04:34 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2931 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference.xml
doc/reference_new.xml

index 124f1f6703ff6df76ac252696802c1299f4b6967..01d4f8e431d1edff070dce6833203d554f7503aa 100644 (file)
@@ -319,15 +319,6 @@ ST_Dimension
           </listitem>
         </varlistentry>
 
-        <varlistentry id="IsClosed">
-          <term>ST_IsClosed(geometry)</term>
-
-          <listitem>
-            <para>Returns true of the geometry start and end points are
-            coincident.</para>
-          </listitem>
-        </varlistentry>
-
         <varlistentry>
           <term>ST_IsRing(geometry)</term>
 
@@ -2021,21 +2012,6 @@ WHERE n*100.00/length &lt; 1;
         </listitem>
       </varlistentry>
 
-      <varlistentry id="ST_IsClosed">
-        <term>ST_IsClosed</term>
-
-        <listitem>
-          <para>Test if an ST_Curve or ST_MultiCurve value is closed.</para>
-
-          <note>
-            <para>SQL-MM defines the result of ST_IsClosed(NULL) to be 0,
-            while PostGIS returns NULL.</para>
-          </note>
-
-          <para>SQL-MM 3: 7.1.5, 9.3.3</para>
-        </listitem>
-      </varlistentry>
-
       <varlistentry>
         <term>ST_IsEmpty</term>
 
@@ -2052,7 +2028,7 @@ WHERE n*100.00/length &lt; 1;
         </listitem>
       </varlistentry>
 
-      <varlistentry>
+      <varlistentry id="ST_IsRing">
         <term>ST_IsRing</term>
 
         <listitem>
@@ -2067,7 +2043,7 @@ WHERE n*100.00/length &lt; 1;
         </listitem>
       </varlistentry>
 
-      <varlistentry>
+      <varlistentry >
         <term>ST_IsSimple</term>
 
         <listitem>
index 2318a16343c060710268e28f9ed023a9551e3cc8..8bead3f4e9965bcd55c8ab522de529b48784b713 100644 (file)
@@ -1876,6 +1876,95 @@ postgis=# SELECT ST_EndPoint('POINT(1 1)'::geometry) IS NULL AS is_null;
                        <para><xref linkend="GeometryType" /></para>
                </refsection>
        </refentry>
+       
+    <refentry id="ST_IsClosed">
+      <refnamediv>
+        <refname>ST_IsClosed</refname>
+    
+        <refpurpose>Returns <varname>TRUE</varname> if the 
+        <varname>LINESTRING</varname>'s start and end points are coincident.
+        </refpurpose>
+      </refnamediv>
+    
+      <refsynopsisdiv>
+        <funcsynopsis>
+          <funcprototype>
+            <funcdef>boolean <function>ST_IsClosed</function></funcdef>
+    
+            <paramdef><type>geometry </type> <parameter>g</parameter></paramdef>
+          </funcprototype>
+        </funcsynopsis>
+      </refsynopsisdiv>
+    
+      <refsection>
+        <title>Description</title>
+    
+        <para>Returns <varname>TRUE</varname> if the <varname>LINESTRING</varname>'s 
+        start and end points are coincident.</para>
+    
+        <para><inlinemediaobject>
+            <imageobject>
+              <imagedata fileref="images/check.png" />
+            </imageobject>
+          </inlinemediaobject> This method implements the <ulink
+        url="http://www.opengeospatial.org/standards/sfs">OpenGIS Simple Features
+        Implementation Specification for SQL.</ulink></para>
+    
+        <para><inlinemediaobject>
+            <imageobject>
+              <imagedata fileref="images/check.png" />
+            </imageobject>
+          </inlinemediaobject> This method implements the SQL/MM specification:
+        SQL-MM 3: 7.1.5, 9.3.3</para>
+    
+        <note>
+          <para>SQL-MM defines the result of
+          <function>ST_IsClosed(<varname>NULL</varname>)</function> to be 0, while
+          PostGIS returns <varname>NULL</varname>.</para>
+        </note>
+      </refsection>
+    
+      <refsection>
+        <title>Examples</title>
+    
+        <programlisting>postgis=# SELECT ST_IsClosed('LINESTRING(0 0, 1 1)'::geometry);
+ st_isclosed
+-------------
+ f
+(1 row)
+
+postgis=# SELECT ST_IsClosed('LINESTRING(0 0, 0 1, 1 1, 0 0)'::geometry);
+ st_isclosed
+-------------
+ t
+(1 row)
+
+postgis=# SELECT ST_IsClosed('MULTILINESTRING((0 0, 0 1, 1 1, 0 0),(0 0, 1 1))'::geometry);
+ st_isclosed
+-------------
+ f
+(1 row)
+
+postgis=# SELECT ST_IsClosed('POINT(0 0)'::geometry);
+ st_isclosed
+-------------
+ t
+(1 row)
+
+postgis=# SELECT ST_IsClosed('MULTIPOINT((0 0), (1 1))'::geometry);
+ st_isclosed
+-------------
+ t
+(1 row)</programlisting>
+      </refsection>
+    
+      <refsection>
+        <title>See Also</title>
+    
+        <para><xref linkend="ST_IsRing" /></para>
+      </refsection>
+    </refentry>
+
        <refentry id="ST_NPoints">
                <refnamediv>
                        <refname>ST_NPoints</refname>