[postgis-tickets] r14518 - Add figures for ST_Boundary

Regina Obe lr at pcorp.us
Tue Dec 22 14:05:24 PST 2015


Author: robe
Date: 2015-12-22 14:05:24 -0800 (Tue, 22 Dec 2015)
New Revision: 14518

Added:
   branches/2.2/doc/html/image_src/st_boundary01.wkt
   branches/2.2/doc/html/image_src/st_boundary02.wkt
Modified:
   branches/2.2/doc/html/image_src/Makefile.in
   branches/2.2/doc/reference_accessor.xml
Log:
Add figures for ST_Boundary
closes #3406

Modified: branches/2.2/doc/html/image_src/Makefile.in
===================================================================
--- branches/2.2/doc/html/image_src/Makefile.in	2015-12-22 19:32:35 UTC (rev 14517)
+++ branches/2.2/doc/html/image_src/Makefile.in	2015-12-22 22:05:24 UTC (rev 14518)
@@ -23,6 +23,8 @@
 	../images/de9im02.png \
 	../images/st_azimuth01.png \
 	../images/st_azimuth02.png \
+	../images/st_boundary01.png \
+	../images/st_boundary02.png \
 	../images/st_buffer01.png \
 	../images/st_buffer02.png \
 	../images/st_buffer03.png \

Added: branches/2.2/doc/html/image_src/st_boundary01.wkt
===================================================================
--- branches/2.2/doc/html/image_src/st_boundary01.wkt	                        (rev 0)
+++ branches/2.2/doc/html/image_src/st_boundary01.wkt	2015-12-22 22:05:24 UTC (rev 14518)
@@ -0,0 +1,2 @@
+Style1;LINESTRING(100 150,50 60, 70 80, 160 170)
+Style2;MULTIPOINT(100 150,160 170)

Added: branches/2.2/doc/html/image_src/st_boundary02.wkt
===================================================================
--- branches/2.2/doc/html/image_src/st_boundary02.wkt	                        (rev 0)
+++ branches/2.2/doc/html/image_src/st_boundary02.wkt	2015-12-22 22:05:24 UTC (rev 14518)
@@ -0,0 +1,2 @@
+Style1;POLYGON (( 10 130, 50 190, 110 190, 140 150, 150 80, 100 10, 20 40, 10 130 ), ( 70 40, 100 50, 120 80, 80 110, 50 90, 70 40 ))
+Style2;MULTILINESTRING((10 130,50 190,110 190,140 150,150 80,100 10,20 40,10 130),(70 40,100 50,120 80,80 110,50 90,70 40))

Modified: branches/2.2/doc/reference_accessor.xml
===================================================================
--- branches/2.2/doc/reference_accessor.xml	2015-12-22 19:32:35 UTC (rev 14517)
+++ branches/2.2/doc/reference_accessor.xml	2015-12-22 22:05:24 UTC (rev 14518)
@@ -87,6 +87,7 @@
 		<para><xref linkend="ST_GeometryType" /></para>
 	  </refsection>
 	</refentry>
+	
 	<refentry id="ST_Boundary">
 	  <refnamediv>
 		<refname>ST_Boundary</refname>
@@ -128,6 +129,50 @@
 	  <refsection>
 		<title>Examples</title>
 
+						<informaltable>
+				  <tgroup cols="2">
+					<tbody>
+					  <row>
+						<entry><para><informalfigure>
+							<mediaobject>
+							  <imageobject>
+								<imagedata fileref="images/st_boundary01.png" />
+							  </imageobject>
+							  <caption><para>Linestring with boundary points overlaid</para></caption>
+							</mediaobject>
+						  </informalfigure>
+				<programlisting>SELECT ST_Boundary(geom)
+FROM (SELECT 'LINESTRING(100 150,50 60, 70 80, 160 170)'::geometry As geom) As f;
+				</programlisting>
+<screen>-- ST_AsText output
+MULTIPOINT(100 150,160 170)
+</screen>
+						  </para></entry>
+
+						<entry><para><informalfigure>
+							<mediaobject>
+							  <imageobject>
+								<imagedata fileref="images/st_boundary02.png" />
+							  </imageobject>
+							  <caption><para>polygon with holes and boundary overlaid</para></caption>
+							</mediaobject>
+						  </informalfigure>
+				<programlisting>SELECT ST_Boundary(geom)
+FROM (SELECT 
+'POLYGON (( 10 130, 50 190, 110 190, 140 150, 150 80, 100 10, 20 40, 10 130 ), 
+	( 70 40, 100 50, 120 80, 80 110, 50 90, 70 40 ))'::geometry As geom) As f;
+				</programlisting>
+<screen>-- ST_AsText output
+MULTILINESTRING((10 130,50 190,110 190,140 150,150 80,100 10,20 40,10 130), 
+	(70 40,100 50,120 80,80 110,50 90,70 40))
+</screen>
+						</para></entry>
+					  </row>
+					
+		</tbody>
+		</tgroup>
+	</informaltable>
+	
 		 <programlisting>SELECT ST_AsText(ST_Boundary(ST_GeomFromText('LINESTRING(1 1,0 0, -1 1)')));
 st_astext
 -----------
@@ -156,7 +201,7 @@
 		<refsection>
 			<title>See Also</title>
 
-			<para><xref linkend="ST_ExteriorRing" />, <xref linkend="ST_MakePolygon" /></para>
+			<para><xref linkend="ST_AsText" />, <xref linkend="ST_ExteriorRing" />, <xref linkend="ST_MakePolygon" /></para>
 		</refsection>
 	</refentry>
 



More information about the postgis-tickets mailing list