Commit b32cf306 authored by Regina Obe's avatar Regina Obe

Add graphical examples for ST_Envelope and ST_OrientedEnvelope

git-svn-id: http://svn.osgeo.org/postgis/trunk@16620 b70326c6-7e19-0410-871a-916f4a2858ee
parent 6415fb5f
Pipeline #24006993 passed with stage
in 17 minutes and 47 seconds
......@@ -70,6 +70,7 @@ IMAGES= \
../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= \
../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_RESIZED= \
../images/de9im10.png \
../images/de9im11.png \
../images/de9im12.png \
../images/de9im13.png
../images/de9im13.png
OBJS=styles.o generator.o
......
Style1;POLYGON((20 75,20 150,125 150,125 75,20 75))
Style2;LINESTRING(55 75,125 150)
Style2;POINT(20 80)
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)
......@@ -452,6 +452,23 @@ SELECT Box3D(geom), Box2D(geom), ST_AsText(ST_Envelope(geom)) As envelopewkt
<!-- 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>
......
......@@ -2204,7 +2204,7 @@ FROM (SELECT ST_Translate(ST_Force3D(ST_Boundary(ST_Buffer(ST_Point(1,3), 2,2)))
<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((135.59714732062 115,134.384753327498 102.690357210921,130.79416296937 9
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>
......
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