]> granicus.if.org Git - postgis/commitdiff
some examples of delaunay triangles
authorRegina Obe <lr@pcorp.us>
Tue, 3 Jul 2012 15:45:01 +0000 (15:45 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 3 Jul 2012 15:45:01 +0000 (15:45 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10010 b70326c6-7e19-0410-871a-916f4a2858ee

doc/html/image_src/Makefile.in
doc/reference_processing.xml

index 606b03355f58e5098cf578cbee0bbf4fd152cf53..b4f7cef5ae9195caf21b605fdf2e2e0bf7d3083a 100644 (file)
@@ -56,6 +56,8 @@ IMAGES= \
        ../images/st_crosses02.png \
        ../images/st_crosses03.png \
        ../images/st_crosses04.png \
+       ../images/st_delaunaytriangles02.png \
+       ../images/st_delaunaytriangles03.png \
        ../images/st_difference01.png \
        ../images/st_dumppoints01.png \
        ../images/st_issimple01.png \
index eb7fdced9765a606cb9cc21314d247ad06618f93..a89446cc427323f22d3f3b1155baedcfc4a5977d 100644 (file)
@@ -905,6 +905,54 @@ togheter.
                        <para>Availability: 2.1.0 - requires GEOS &gt;= 3.4.0.</para>
 
                </refsection>
+                         <refsection>
+               <title>Examples</title>
+                       <informaltable>
+                                 <tgroup cols="2">
+                                       <tbody>
+                                         <row>
+                                               <entry><para><informalfigure>
+                                                       <mediaobject>
+                                                         <imageobject>
+                                                               <imagedata fileref="images/st_delaunaytriangles03.png" />
+                                                         </imageobject>
+                                                         <caption><para>ST_DelaunayTriangles of 2 polygons overlaid with delaunay triangle polygons</para></caption>
+                                                       </mediaobject>
+                                                 </informalfigure>
+                               <programlisting>
+-- geometries overlaid multilinestring triangles
+SELECT 
+       ST_DelaunayTriangles(
+               ST_Union(ST_GeomFromText('POLYGON((175 150, 20 40, 
+                       50 60, 125 100, 175 150))'),
+               ST_Buffer(ST_GeomFromText('POINT(110 170)'), 20)
+               )) 
+        As  dtriag;
+                               </programlisting>
+                                                 </para></entry>
+                                               <entry><para><informalfigure>
+                                                       <mediaobject>
+                                                         <imageobject>
+                                                               <imagedata fileref="images/st_delaunaytriangles02.png" />
+                                                         </imageobject>
+                                                         <caption><para>-- geometries overlaid with multilinestring representation of delaunay triangles</para></caption>
+                                                       </mediaobject>
+                                                 </informalfigure>
+                               <programlisting>
+SELECT 
+       ST_DelaunayTriangles(
+               ST_Union(ST_GeomFromText('POLYGON((175 150, 20 40, 
+                       50 60, 125 100, 175 150))'),
+               ST_Buffer(ST_GeomFromText('POINT(110 170)'), 20)
+               ),0.001,1) 
+        As  dtriag;
+                               </programlisting>
+                                               </para></entry>
+                                         </row>
+               </tbody>
+       </tgroup>
+</informaltable>
+         </refsection>
 
                <refsection>
                        <title>See Also</title>