]> granicus.if.org Git - postgis/commitdiff
Add figures for ST_Boundary
authorRegina Obe <lr@pcorp.us>
Tue, 22 Dec 2015 19:32:35 +0000 (19:32 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 22 Dec 2015 19:32:35 +0000 (19:32 +0000)
references #3406

git-svn-id: http://svn.osgeo.org/postgis/trunk@14517 b70326c6-7e19-0410-871a-916f4a2858ee

doc/html/image_src/Makefile.in
doc/html/image_src/st_boundary01.wkt [new file with mode: 0644]
doc/html/image_src/st_boundary02.wkt [new file with mode: 0644]
doc/reference_accessor.xml

index 2e9bde714500e13c11a3dde885cf180cccaa609a..521331196f3260a032a3a945593f7cd86ea451fc 100644 (file)
@@ -23,6 +23,8 @@ IMAGES= \
        ../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 \
diff --git a/doc/html/image_src/st_boundary01.wkt b/doc/html/image_src/st_boundary01.wkt
new file mode 100644 (file)
index 0000000..119ce17
--- /dev/null
@@ -0,0 +1,2 @@
+Style1;LINESTRING(100 150,50 60, 70 80, 160 170)\r
+Style2;MULTIPOINT(100 150,160 170)\r
diff --git a/doc/html/image_src/st_boundary02.wkt b/doc/html/image_src/st_boundary02.wkt
new file mode 100644 (file)
index 0000000..728dd79
--- /dev/null
@@ -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 ))\r
+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))\r
index 82cab68e74cbe82aca2ea118f341b77db7e2422e..a820d2c87cc57c42e3a71ceadeb47bd4ab50a071 100644 (file)
          <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 holes with boundary multilinestring</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 +200,7 @@ MULTIPOINT(-1 1 1,1 1 0.75)
                <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>