</refsection>
<refsection>
<title>See Also</title>
- <para><xref linkend="ST_Collect" /></para>
+ <para><xref linkend="ST_Collect" />, <xref linkend="ST_MinimumBoundingCircle" /></para>
</refsection>
</refentry>
ST_MinimumBoundingCircle(ST_Collect(d.the_geom)) As the_geom
FROM disease_obs As d
GROUP BY d.disease_type;
-
- --Only use 8 segs to approximate a quarter circle
+</programlisting>
+ <informalfigure>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/st_minimumboundingcircle01.png" />
+ </imageobject>
+ <caption><para>Minimum bounding circle of a point and linestring. Using 8 segs to approximate a quarter circle</para></caption>
+ </mediaobject>
+ </informalfigure>
+<programlisting>
SELECT ST_AsText(ST_MinimumBoundingCircle(
ST_Collect(
- ST_GeomFromEWKT('LINESTRING(1 2,3 4)'),
- ST_MakePoint(0, 2)), 8
+ ST_GeomFromEWKT('LINESTRING(50 100,150 175)'),
+ ST_Point(0, 100)), 8
)) As wktmbc;
wktmbc
-----------
-POLYGON((3.30277563773199 3,3.26813580935709 2.64829592031203,3.16554751341057 2.31010763116856,
-2.9989531605735 1.99843151886317,2.7747548783982 1.7252451216018,2.50156848113683 1.50104683942651,
-2.18989236883145 1.33445248658943,1.85170407968797 1.23186419064291,1.5 1.19722436226801,
-1.14829592031204 1.23186419064291,0.81010763116856 1.33445248658943,0.498431518863177 1.5010468394265,
-0.225245121601807 1.7252451216018,0.00104683942650734 1.99843151886317,-0.16554751341057 2.31010763116855,
--0.268135809357086 2.64829592031203,-0.302775637731995 2.99999999999999,-0.268135809357088 3.35170407968796,
--0.165547513410575 3.68989236883144,0.00104683942650074 4.00156848113682,0.225245121601799 4.27475487839819,
-0.498431518863167 4.49895316057349,0.81010763116855 4.66554751341057,1.14829592031203 4.76813580935709,
-1.49999999999999 4.80277563773199,1.85170407968796 4.76813580935709,2.18989236883144 4.66554751341057,
-2.50156848113682 4.4989531605735,2.77475487839819 4.2747548783982,2.99895316057349 4.00156848113683,
-3.16554751341057 3.68989236883145,3.26813580935709 3.35170407968797,3.30277563773199 3))
+POLYGON((158.852549156242 137.5,157.241345936731 121.141179183236,152.469653914349 105.411018676327,144.720846537521 90.914019725979,
+134.292706128157 78.2072938718429,121.585980274021 67.7791534624793,107.088981323673 60.0303460856514,
+91.3588208167646 55.2586540632694,75.0000000000001 53.6474508437579,58.6411791832357 55.2586540632694,42.911018676327 60.0303460856513,
+28.4140197259791 67.7791534624792,15.707293871843 78.2072938718428,5.27915346247937 90.9140197259787,-2.46965391434857 105.411018676327,
+-7.24134593673054 121.141179183235,-8.85254915624212 137.5,-7.24134593673065 153.858820816764,-2.46965391434878 169.588981323673,
+5.27915346247906 184.085980274021,15.7072938718426 196.792706128157,28.4140197259786 207.220846537521,42.9110186763265 214.969653914349,
+58.6411791832352 219.741345936731,74.9999999999997 221.352549156242,91.3588208167642 219.741345936731,107.088981323673 214.969653914349,
+121.585980274021 207.220846537521,134.292706128157 196.792706128157,144.720846537521 184.085980274021,152.469653914349 169.588981323673,
+157.241345936731 153.858820816765,158.852549156242 137.5))
</programlisting>
</refsection>
<refsection>
<para><xref linkend="ST_Difference" />, <xref linkend="ST_Intersection" />, <xref linkend="ST_Union" /></para>
</refsection>
- </refentry>
+</refentry>
<refentry id="ST_Union">