[postgis-tickets] r16620 - Add graphical examples for ST_Envelope and ST_OrientedEnvelope

Regina Obe lr at pcorp.us
Sun Jun 17 01:41:16 PDT 2018


Author: robe
Date: 2018-06-17 01:41:15 -0700 (Sun, 17 Jun 2018)
New Revision: 16620

Added:
   trunk/doc/html/image_src/st_envelope01.wkt
   trunk/doc/html/image_src/st_orientedenvelope01.wkt
Modified:
   trunk/doc/html/image_src/Makefile.in
   trunk/doc/reference_accessor.xml
   trunk/doc/reference_processing.xml
Log:
Add graphical examples for ST_Envelope and ST_OrientedEnvelope

Modified: trunk/doc/html/image_src/Makefile.in
===================================================================
--- trunk/doc/html/image_src/Makefile.in	2018-06-15 22:23:30 UTC (rev 16619)
+++ trunk/doc/html/image_src/Makefile.in	2018-06-17 08:41:15 UTC (rev 16620)
@@ -70,6 +70,7 @@
 	../images/st_delaunaytriangles04.png \
 	../images/st_difference01.png \
 	../images/st_dumppoints01.png \
+	../images/st_envelope01.png \
 	../images/st_extrude01.png \
 	../images/st_extrude03.png \
 	../images/st_generatepoints01.png \
@@ -112,6 +113,7 @@
 	../images/st_offsetcurve04.png \
 	../images/st_offsetcurve05.png \
 	../images/st_offsetcurve06.png \
+	../images/st_orientedenvelope01.png \
 	../images/st_overlaps01.png \
 	../images/st_overlaps02.png \
 	../images/st_overlaps03.png \
@@ -159,7 +161,7 @@
 	../images/de9im10.png \
 	../images/de9im11.png \
 	../images/de9im12.png \
-	../images/de9im13.png 
+	../images/de9im13.png
 
 OBJS=styles.o generator.o
 

Added: trunk/doc/html/image_src/st_envelope01.wkt
===================================================================
--- trunk/doc/html/image_src/st_envelope01.wkt	                        (rev 0)
+++ trunk/doc/html/image_src/st_envelope01.wkt	2018-06-17 08:41:15 UTC (rev 16620)
@@ -0,0 +1,3 @@
+Style1;POLYGON((20 75,20 150,125 150,125 75,20 75))
+Style2;LINESTRING(55 75,125 150)
+Style2;POINT(20 80)

Added: trunk/doc/html/image_src/st_orientedenvelope01.wkt
===================================================================
--- trunk/doc/html/image_src/st_orientedenvelope01.wkt	                        (rev 0)
+++ trunk/doc/html/image_src/st_orientedenvelope01.wkt	2018-06-17 08:41:15 UTC (rev 16620)
@@ -0,0 +1,3 @@
+Style1;POLYGON((19.9999999999997 79.9999999999999,33.0769230769229 60.3846153846152,138.076923076924 130.384615384616,125.000000000001 150.000000000001,19.9999999999997 79.9999999999999))
+Style2;LINESTRING(55 75,125 150)
+Style2;POINT(20 80)

Modified: trunk/doc/reference_accessor.xml
===================================================================
--- trunk/doc/reference_accessor.xml	2018-06-15 22:23:30 UTC (rev 16619)
+++ trunk/doc/reference_accessor.xml	2018-06-17 08:41:15 UTC (rev 16620)
@@ -452,6 +452,23 @@
 
 <!-- TODO: Fix examples to reflect new behavior -->
 	</programlisting>
+		<informalfigure>
+	  <mediaobject>
+		<imageobject>
+		  <imagedata fileref="images/st_envelope01.png" />
+		</imageobject>
+		<caption><para>Envelope of a point and linestring.</para></caption>
+	  </mediaobject>
+	</informalfigure>
+<programlisting>
+SELECT ST_AsText(ST_Envelope(
+		ST_Collect(
+			ST_GeomFromText('LINESTRING(55 75,125 150)'),
+				ST_Point(20, 80))
+				)) As wktenv;
+wktenv
+-----------
+POLYGON((20 75,20 150,125 150,125 75,20 75))</programlisting>
 	  </refsection>
 	  <refsection>
 		<title>See Also</title>

Modified: trunk/doc/reference_processing.xml
===================================================================
--- trunk/doc/reference_processing.xml	2018-06-15 22:23:30 UTC (rev 16619)
+++ trunk/doc/reference_processing.xml	2018-06-17 08:41:15 UTC (rev 16620)
@@ -2204,7 +2204,7 @@
 <programlisting>
 SELECT ST_AsText(ST_MinimumBoundingCircle(
 		ST_Collect(
-			ST_GeomFromEWKT('LINESTRING(55 75,125 150)'),
+			ST_GeomFromText('LINESTRING(55 75,125 150)'),
 				ST_Point(20, 80)), 8
 				)) As wktmbc;
 wktmbc
@@ -2308,6 +2308,25 @@
 				POLYGON((3 2,2.88 2.16,-1.12 -0.84,-1 -1,3 2))
 			</programlisting>
 
+	<informalfigure>
+	  <mediaobject>
+		<imageobject>
+		  <imagedata fileref="images/st_orientedenvelope01.png" />
+		</imageobject>
+		<caption><para>Oriented envelope of a point and linestring.</para></caption>
+	  </mediaobject>
+	</informalfigure>
+<programlisting>
+SELECT ST_AsText(ST_OrientedEnvelope(
+		ST_Collect(
+			ST_GeomFromText('LINESTRING(55 75,125 150)'),
+				ST_Point(20, 80))
+				)) As wktenv;
+wktenv
+-----------
+POLYGON((19.9999999999997 79.9999999999999,33.0769230769229 60.3846153846152,138.076923076924 130.384615384616,125.000000000001 150.000000000001,19.9999999999997 79.9999999999999))
+</programlisting>
+
 		</refsection>
 	</refentry>
 



More information about the postgis-tickets mailing list