[postgis-commits] svn - r3130 - trunk/doc

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Thu Oct 16 15:13:08 PDT 2008


Author: kneufeld
Date: 2008-10-16 15:13:08 -0700 (Thu, 16 Oct 2008)
New Revision: 3130

Modified:
   trunk/doc/template.xml
Log:
reverting accidental commit to template.xml

Modified: trunk/doc/template.xml
===================================================================
--- trunk/doc/template.xml	2008-10-16 18:36:00 UTC (rev 3129)
+++ trunk/doc/template.xml	2008-10-16 22:13:08 UTC (rev 3130)
@@ -1,18 +1,25 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<refentry id="ST_IsRing">
+<refentry id="ST_MyMethod">
   <refnamediv>
-    <refname>ST_IsRing</refname>
+    <refname>ST_MyMethod</refname>
 
-    <refpurpose>Returns <varname>TRUE</varname> if this
-    <varname>LINESTRING</varname> is both closed and simple.</refpurpose>
+    <refpurpose>Returns something useful</refpurpose>
   </refnamediv>
 
   <refsynopsisdiv>
     <funcsynopsis>
       <funcprototype>
-        <funcdef>boolean <function>ST_IsRing</function></funcdef>
+        <funcdef>boolean <function>ST_MyMethod</function></funcdef>
+        <paramdef><type>geometry </type> <parameter>g1</parameter></paramdef>
+        <paramdef><type>geometry </type> <parameter>g2</parameter></paramdef>
+      </funcprototype>
 
-        <paramdef><type>geometry </type> <parameter>g</parameter></paramdef>
+      <!-- an optional second method prototype -->
+      <funcprototype>
+        <funcdef>boolean <function>ST_MyMethod</function></funcdef>
+        <paramdef><type>geometry </type> <parameter>g1</parameter></paramdef>
+        <paramdef><type>geometry </type> <parameter>g2</parameter></paramdef>
+        <paramdef><type>varchar </type> <parameter>myparam</parameter></paramdef>
       </funcprototype>
     </funcsynopsis>
   </refsynopsisdiv>
@@ -20,34 +27,31 @@
   <refsection>
     <title>Description</title>
 
-    <para>Returns <varname>TRUE</varname> if this
-    <varname>LINESTRING</varname> is both <xref linkend="ST_IsClosed" />
-    (<function>ST_StartPoint(<parameter>g</parameter>)</function>
-    <function>~=</function>
-    <function>ST_Endpoint(<parameter>g</parameter>)</function>) and <xref
-    linkend="ST_IsSimple" /> (does not self intersect).</para>
+    <para>Some useful description here.</para>
 
+    <!-- optionally mention that this function uses indexes if appropriate -->
+    <note>
+      <para>This function call will automatically include a bounding box
+      comparison that will make use of any indexes that are available on the
+      geometries.</para>
+    </note>
+
+    <!-- Optionally mention OpenGIS compliancy if appropriate -->
     <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> OGC SFSQL 1.1 -
-    2.1.5.1</para>
+    Implementation Specification for SQL.</ulink></para>
 
+    <!-- Optionally mention SQL/MM compliancy if appropriate -->
     <para><inlinemediaobject>
         <imageobject>
           <imagedata fileref="images/check.png" />
         </imageobject>
       </inlinemediaobject> This method implements the SQL/MM specification:
-    SQL-MM 3: 7.1.6</para>
-
-    <note>
-      <para>SQL-MM defines the result of
-      <function>ST_IsRing(<varname>NULL</varname>)</function> to be 0, while
-      PostGIS returns <varname>NULL</varname>.</para>
-    </note>
+    SQL-MM 3: 5.1.23</para>
 	
 	<!-- Optionally mention 3d support -->
     <para><inlinemediaobject>
@@ -61,14 +65,13 @@
   <refsection>
     <title>Examples</title>
 
-    <programlisting>
-</programlisting>
+    <programlisting></programlisting>
   </refsection>
 
+  <!-- Optionally add a "See Also" section -->
   <refsection>
     <title>See Also</title>
 
-    <para><xref linkend="ST_IsSimple" />, <xref linkend="ST_StartPoint" />,
-    <xref linkend="ST_EndPoint" /></para>
+    <para><xref linkend="ST_MyMethod2" />, ...</para>
   </refsection>
 </refentry>
\ No newline at end of file



More information about the postgis-commits mailing list