Commit d1c99d59 authored by Regina Obe's avatar Regina Obe

Put in example of ST_3DDifference and fix a typo

git-svn-id: http://svn.osgeo.org/postgis/trunk@14186 b70326c6-7e19-0410-871a-916f4a2858ee
parent ffc47387
Pipeline #165033 skipped
......@@ -79,7 +79,7 @@
</refsection>
<refsection><title>Examples</title>
<para>3D images were generated using the PostGIS <xref linkend="ST_AsX3D" /> and rendering in HTML using <ulink url="http://www.x3dom.org">X3Dom HTML Javascript redering library</ulink>.</para>
<para>3D images were generated using PostGIS <xref linkend="ST_AsX3D" /> and rendering in HTML using <ulink url="http://www.x3dom.org">X3Dom HTML Javascript rendering library</ulink>.</para>
<informaltable>
<tgroup cols="2">
......@@ -570,13 +570,67 @@ FROM ST_GeomFromText('LINESTRING Z (2 2 6,1.5 1.5 7,1 1 8,0.5 0.5 8,0 0 10)') A
<refsection>
<title>Description</title>
<para>Returns that part of geom1 that is not part of geom2.</para>
<para>Availability: 2.2.0</para>
<para>&sfcgal_required;</para>
<para>&Z_support;</para>
<para>&P_support;</para>
<para>&T_support;</para>
</refsection>
<refsection>
<title>Examples</title>
<para>3D images were generated using PostGIS <xref linkend="ST_AsX3D" /> and rendering in HTML using <ulink url="http://www.x3dom.org">X3Dom HTML Javascript rendering library</ulink>.</para>
<informaltable>
<tgroup cols="2">
<tbody>
<row>
<entry><para>
<programlisting>SELECT ST_Extrude(ST_Buffer(ST_GeomFromText('POINT(100 90)'),
50, 'quad_segs=2'),0,0,30) AS geom1,
ST_Extrude(ST_Buffer(ST_GeomFromText('POINT(80 80)'),
50, 'quad_segs=1'),0,0,30) AS geom2;
</programlisting>
<informalfigure>
<mediaobject>
<imageobject>
<imagedata fileref="images/st_difference01.png" />
</imageobject>
<caption><para>Original 3D geometries overlaid. geom2 is the part that will be removed.</para></caption>
</mediaobject>
</informalfigure></para>
</entry>
<entry><para>
<programlisting>SELECT ST_3DDifference(geom1,geom2)
FROM ( SELECT ST_Extrude(ST_Buffer(ST_GeomFromText('POINT(100 90)'),
50, 'quad_segs=2'),0,0,30) AS geom1,
ST_Extrude(ST_Buffer(ST_GeomFromText('POINT(80 80)'),
50, 'quad_segs=1'),0,0,30) AS geom2 ) As t;</programlisting>
<informalfigure>
<mediaobject>
<imageobject>
<imagedata fileref="images/st_difference02.png" />
</imageobject>
<caption><para>What's left after removing geom2</para></caption>
</mediaobject>
</informalfigure></para>
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsection>
<refsection>
<title>See Also</title>
<para>
<xref linkend="ST_Extrude" />,
<xref linkend="ST_AsX3D" />,
<xref linkend="ST_3DUnion" />
</para>
</refsection>
</refentry>
<refentry id="ST_3DUnion">
......@@ -598,6 +652,7 @@ FROM ST_GeomFromText('LINESTRING Z (2 2 6,1.5 1.5 7,1 1 8,0.5 0.5 8,0 0 10)') A
<refsection>
<title>Description</title>
<para>Availability: 2.2.0</para>
<para>&sfcgal_required;</para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment