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

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Tue Oct 7 10:39:00 PDT 2008


Author: robe
Date: 2008-10-07 10:39:00 -0700 (Tue, 07 Oct 2008)
New Revision: 3071

Modified:
   trunk/doc/reference.xml
   trunk/doc/reference_new.xml
Log:
Move over ST_ConvexHull

Modified: trunk/doc/reference.xml
===================================================================
--- trunk/doc/reference.xml	2008-10-06 19:51:56 UTC (rev 3070)
+++ trunk/doc/reference.xml	2008-10-07 17:39:00 UTC (rev 3071)
@@ -114,30 +114,6 @@
         </varlistentry>
 
         <varlistentry>
-          <term>ST_ConvexHull(geometry)</term>
-
-          <listitem>
-            <para>The convex hull of a geometry represents the minimum closed
-            geometry that encloses all geometries within the set.</para>
-
-            <para>It is usually used with MULTI and Geometry Collections.
-            Although it is not an aggregate - you can use it in conjunction
-            with ST_Collect to get the convex hull of a set of points.
-            ST_ConvexHull(ST_Collect(somepointfield)). It is often used to
-            determine an affected area based on a set of point
-            observations.</para>
-
-            <programlisting>SELECT d.disease_type, ST_ConvexHull(ST_Collect(d.the_geom)) As the_geom 
-	FROM disease_obs As d 
-	GROUP BY d.disease_type</programlisting>
-
-            <para>Performed by the GEOS module</para>
-
-            <para>OGC SPEC s2.1.1.3</para>
-          </listitem>
-        </varlistentry>
-
-        <varlistentry>
           <term>ST_Shift_Longitude(geometry)</term>
 
           <listitem>
@@ -1657,25 +1633,7 @@
           <para>SQL-MM 3: 5.1.14</para>
         </listitem>
       </varlistentry>
-  
-      <varlistentry>
-        <term>ST_ConvexHull</term>
 
-        <listitem>
-          <para>The convex hull of a geometry represents the minimum geometry
-          that encloses all geometries within the set.</para>
-
-          <para>It is usually used with MULTI and Geometry Collections.
-          Although it is not an aggregate - you can use it in conjunction with
-          ST_Collect to get the convex hull of a set of points.
-          ST_ConvexHull(ST_Collect(somepointfield)). It is often used to
-          determine an affected area based on a set of point
-          observations.</para>
-
-          <para>SQL-MM 3: 5.1.16</para>
-        </listitem>
-      </varlistentry>
-
       <varlistentry>
         <term>ST_CoordDim</term>
 

Modified: trunk/doc/reference_new.xml
===================================================================
--- trunk/doc/reference_new.xml	2008-10-06 19:51:56 UTC (rev 3070)
+++ trunk/doc/reference_new.xml	2008-10-07 17:39:00 UTC (rev 3071)
@@ -5040,7 +5040,84 @@
 		<para><xref linkend="ST_Dump" />, <xref linkend="ST_Union" /></para>
 	  </refsection>
 	</refentry>
+   
+	<refentry id="ST_ConvexHull">
+	  <refnamediv>
+		<refname>ST_ConvexHull</refname>
+		<refpurpose>The convex hull of a geometry represents the minimum closed
+		geometry that encloses all geometries within the set.</refpurpose>
+	  </refnamediv>
 	
+	  <refsynopsisdiv>
+		<funcsynopsis>
+		  <funcprototype>
+			<funcdef>geometry<function>ST_ConvexHull</function></funcdef>
+			<paramdef><type>geometry </type> <parameter>geomA</parameter></paramdef>
+		  </funcprototype>
+		</funcsynopsis>
+	  </refsynopsisdiv>
+	
+	  <refsection>
+		<title>Description</title>
+        	<para>The convex hull of a geometry represents the minimum closed
+		geometry that encloses all geometries within the set.</para>
+
+            <para>It is usually used with MULTI and Geometry Collections.
+		Although it is not an aggregate - you can use it in conjunction
+		with ST_Collect to get the convex hull of a set of points.
+		ST_ConvexHull(ST_Collect(somepointfield)).</para>
+		
+		<para>It is often used to
+		determine an affected area based on a set of point
+		observations.</para>
+		
+		<para>Performed by the GEOS module</para>
+
+		<para>
+			  <inlinegraphic fileref="images/check.png" />
+			  This method implements the
+			  <ulink url="http://www.opengeospatial.org/standards/sfs">OpenGIS Simple
+			  Features Implementation Specification for SQL</ulink>  OGC SPEC s2.1.1.3 
+		</para>
+		<!-- Optionally mention 3d support -->
+		<para><inlinemediaobject>
+        <imageobject>
+          <imagedata fileref="images/check.png" />
+        </imageobject>
+		</inlinemediaobject> This function supports 3d and will not drop the z-index, but sometimes does something goofy with
+			the z-index (elevation) when polygons are involved.</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: 5.1.16</para>
+			
+	  </refsection>
+	
+	  <refsection>
+		<title>Examples</title>
+<programlisting>SELECT d.disease_type, 
+	ST_ConvexHull(ST_Collect(d.the_geom)) As the_geom 
+	FROM disease_obs As d 
+	GROUP BY d.disease_type;
+	
+	SELECT ST_AsEWKT(ST_ConvexHull(
+		ST_Collect(
+			ST_GeomFromEWKT('LINESTRING(1 2 3,3 4 5)'), 
+				ST_MakePoint(0, 2, 0))
+				));
+	---st_asewkt--
+	POLYGON((0 2 0,3 4 5,1 2 3,0 2 0))
+				</programlisting>
+	  </refsection>
+	  <refsection>
+		<title>See Also</title>
+		<para><xref linkend="ST_Collect" /></para>
+	  </refsection>
+	</refentry>	  
+	
 	<refentry id="ST_Dump">
 	  <refnamediv>
 		<refname>ST_Dump</refname>



More information about the postgis-commits mailing list