]> granicus.if.org Git - postgis/commitdiff
moved over st_pointonsurface and provided examples.
authorKevin Neufeld <kneufeld.ca@gmail.com>
Tue, 29 Jul 2008 05:43:57 +0000 (05:43 +0000)
committerKevin Neufeld <kneufeld.ca@gmail.com>
Tue, 29 Jul 2008 05:43:57 +0000 (05:43 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2890 b70326c6-7e19-0410-871a-916f4a2858ee

doc/reference.xml
doc/reference_new.xml

index dc253e4afd47a10595f18723d35ddf9a3704978c..eac52cb5716590a3a556530223a76756d8f4438b 100644 (file)
           </listitem>
         </varlistentry>
 
-        <varlistentry>
-          <term>ST_PointOnSurface(geometry)</term>
-
-          <listitem>
-            <para>Return a Point guaranteed to lie on the surface</para>
-
-            <para>Implemented using GEOS</para>
-
-            <para>OGC SPEC 3.2.14.2 and 3.2.18.2 -</para>
-          </listitem>
-        </varlistentry>
-
         <varlistentry>
           <term>ST_Boundary(geometry)</term>
 
@@ -2047,7 +2035,7 @@ WHERE n*100.00/length &lt; 1;
           </listitem>
         </varlistentry>
 
-        <varlistentry>
+        <varlistentry id="ST_Point_Inside_Circle">
           <term>ST_point_inside_circle(geometry, float, float, float)</term>
 
           <listitem>
@@ -2618,17 +2606,6 @@ WHERE n*100.00/length &lt; 1;
         </listitem>
       </varlistentry>
 
-      <varlistentry id="ST_PointOnSurface">
-        <term>ST_PointOnSurface</term>
-
-        <listitem>
-          <para>Return an ST_Point value guaranteed to spatially intersect the
-          ST_Surface or ST_MultiSurface value.</para>
-
-          <para>SQL-MM 3: 8.1.5, 9.5.6</para>
-        </listitem>
-      </varlistentry>
-
       <varlistentry>
         <term>ST_PolyFromText</term>
 
index 3734b35fb7c3bd20e781398621a2ccc1a330dd6d..6a2d6311820a3eba5f82cc304a6506de34d1e660 100644 (file)
@@ -2870,6 +2870,73 @@ SELECT ST_OrderingEquals(ST_Reverse(ST_GeomFromText('LINESTRING(0 0, 10 10)')),
          </refsection>
          
        </refentry>
+    <refentry id="ST_PointOnSurface">
+      <refnamediv>
+        <refname>ST_PointOnSurface</refname>
+
+        <refpurpose>Returns a <varname>POINT</varname> guaranteed to lie on the surface.</refpurpose>
+      </refnamediv>
+
+      <refsynopsisdiv>
+        <funcsynopsis>
+          <funcprototype>
+            <funcdef>boolean <function>ST_PointOnSurface</function></funcdef>
+
+            <paramdef><type>geometry </type>
+            <parameter>g1</parameter></paramdef>
+          </funcprototype>
+        </funcsynopsis>
+      </refsynopsisdiv>
+
+      <refsection>
+        <title>Description</title>
+
+        <para>Returns a <varname>POINT</varname> guaranteed to intersect a surface.</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: 3.2.14.2, 3.2.18.2</ulink></para>
+
+        <para><inlinemediaobject>
+            <imageobject>
+              <imagedata fileref="images/check.png" />
+            </imageobject>
+          </inlinemediaobject> This method implements the SQL/MM
+        specification: SQL-MM 3: 8.1.5, 9.5.6</para>
+      </refsection>
+
+      <refsection>
+        <title>Examples</title>
+        
+        <programlisting>SELECT ST_AsText(ST_PointOnSurface('POINT(0 5)'::geometry));
+ st_astext  
+------------
+ POINT(0 5)
+(1 row)
+
+SELECT ST_AsText(ST_PointOnSurface('LINESTRING(0 5, 0 10)'::geometry));
+ st_astext  
+------------
+ POINT(0 5)
+(1 row)
+
+SELECT ST_AsText(ST_PointOnSurface('POLYGON((0 0, 0 5, 5 5, 5 0, 0 0))'::geometry));
+   st_astext    
+----------------
+ POINT(2.5 2.5)
+(1 row)</programlisting>
+      </refsection>
+
+      <refsection>
+        <title>See Also</title>
+
+        <para><xref linkend="ST_Centroid" />, <xref linkend="ST_Point_Inside_Circle" /></para>
+      </refsection>
+    </refentry>
        
     <refentry id="ST_Within">
       <refnamediv>