[postgis-tickets] [SCM] PostGIS branch master updated. 3.2.0-457-g972fce5a0

git at osgeo.org git at osgeo.org
Wed Feb 2 10:23:11 PST 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".

The branch, master has been updated
       via  972fce5a06445e8422e07f34ad16e1c01d387005 (commit)
      from  a215ea1c209d01e57129561160246055b9853297 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 972fce5a06445e8422e07f34ad16e1c01d387005
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Wed Feb 2 10:23:08 2022 -0800

    Improve doc ST_MaxInscribedCircle example

diff --git a/doc/html/image_src/st_maximuminscribedcircle01.wkt b/doc/html/image_src/st_maximuminscribedcircle01.wkt
index 97f5287e6..9f71bdbc3 100644
--- a/doc/html/image_src/st_maximuminscribedcircle01.wkt
+++ b/doc/html/image_src/st_maximuminscribedcircle01.wkt
@@ -1,5 +1,5 @@
-Highlight; POLYGON((142.492109375 107.353515625,141.67394661457 99.0465697135533,139.250899869331 91.0588550748945,135.316085466842 83.6973351030254,130.020716117923 77.2449088820768,123.568289896975 71.9495395331576,116.206769925106 68.0147251306694,108.219055286447 65.5916783854305,99.9121093750001 64.773515625,91.6051634635533 65.5916783854304,83.6174488248946 68.0147251306694,76.2559288530254 71.9495395331576,69.8035026320769 77.2449088820767,64.5081332831577 83.6973351030253,60.5733188806695 91.0588550748944,58.1502721354305 99.0465697135531,57.332109375 107.353515625,58.1502721354304 115.660461536447,60.5733188806693 123.648176175105,64.5081332831575 131.009696146975,69.8035026320767 137.462122367923,76.2559288530252 142.757491716842,83.6174488248943 146.692306119331,91.6051634635531 149.11535286457,99.9121093749998 149.933515625,108.219055286447 149.11535286457,116.206769925105 146.692306119331,123.568289896974 142.757491716843,130.020716117923 137.462122367923,135.3160854668
 42 131.009696146975,139.250899869331 123.648176175106,141.67394661457 115.660461536447,142.492109375 107.353515625))
-ArgA;LINESTRING(100 40, 10 150, 100 150, 190 150, 100 40)
-Result;POINT(99.912109375 107.353515625)
-Result;POINT(66.9548654084158 80.3884978341584)
-Result;LINESTRING(99.912109375 107.353515625,66.9548654084158 80.3884978341584)
+Highlight;POLYGON ((142.118970650018 76.328125, 141.25112159050192 67.51670562800724, 138.68092536461558 59.04390416097925, 134.50715317193706 51.23532560769212, 128.89020073715267 44.391049262847346, 122.04592439230788 38.77409682806294, 114.23734583902075 34.60032463538444, 105.76454437199276 32.03012840949807, 96.953125 31.162279349982, 88.14170562800724 32.03012840949807, 79.66890416097925 34.60032463538444, 71.86032560769212 38.77409682806293, 65.01604926284735 44.39104926284734, 59.39909682806293 51.23532560769212, 55.22532463538444 59.04390416097925, 52.65512840949807 67.51670562800723, 51.787279349982 76.328125, 52.65512840949807 85.13954437199276, 55.22532463538443 93.61234583902075, 59.39909682806292 101.42092439230788, 65.01604926284733 108.26520073715265, 71.86032560769212 113.88215317193706, 79.66890416097922 118.05592536461555, 88.14170562800723 120.62612159050192, 96.95312499999999 121.493970650018, 105.76454437199276 120.62612159050192, 114.23734583902076 118.0559253
 6461556, 122.04592439230787 113.88215317193708, 128.89020073715264 108.26520073715267, 134.50715317193706 101.42092439230788, 138.68092536461555 93.61234583902078, 141.25112159050192 85.13954437199278, 142.118970650018 76.328125))
+ArgA;POLYGON ((40 180, 110 160, 180 180, 180 120, 140 90, 160 40, 80 10, 70 40, 20 50, 40 180), (60 140, 50 90, 90 140, 60 140))
+Result;POINT(96.953125 76.328125)
+Result;POINT(140 90)
+Result;LINESTRING(96.953125 76.328125,140 90)
diff --git a/doc/reference_processing.xml b/doc/reference_processing.xml
index 290cf5454..bc84cf142 100644
--- a/doc/reference_processing.xml
+++ b/doc/reference_processing.xml
@@ -1276,20 +1276,23 @@ LINESTRING Z (-30 -29.7 5,-29 -27 11,-30 -29.7 10,-36 -31 5,-45 -33 1,-46 -32 11
 
       <refsection>
         <title>Examples</title>
-<programlisting>SELECT radius, ST_AsText(center) AS center, ST_AsText(nearest) AS nearest
-    FROM ST_MaximumInscribedCircle('POLYGON ((50 50, 150 50, 150 150, 50 150, 50 50))')
-
- radius |     center     |    nearest
---------+----------------+---------------
-     50 | POINT(100 100) | POINT(100 50)</programlisting>
     <informalfigure>
       <mediaobject>
         <imageobject>
           <imagedata fileref="images/st_maximuminscribedcircle01.png" />
         </imageobject>
-        <caption><para>Maximum inscribed circle of a triangle polygon. Center, nearest point, and radius are returned.</para></caption>
+        <caption><para>Maximum inscribed circle of a polygon. Center, nearest point, and radius are returned.</para></caption>
       </mediaobject>
     </informalfigure>
+<programlisting>SELECT radius, ST_AsText(center) AS center, ST_AsText(nearest) AS nearest
+    FROM ST_MaximumInscribedCircle(
+        'POLYGON ((40 180, 110 160, 180 180, 180 120, 140 90, 160 40, 80 10, 70 40, 20 50, 40 180),
+        (60 140, 50 90, 90 140, 60 140))');
+
+     radius      |           center           |    nearest
+-----------------+----------------------------+---------------
+ 45.165845650018 | POINT(96.953125 76.328125) | POINT(140 90)
+</programlisting>
 
     <informalfigure>
       <mediaobject>

-----------------------------------------------------------------------

Summary of changes:
 doc/html/image_src/st_maximuminscribedcircle01.wkt | 10 +++++-----
 doc/reference_processing.xml                       | 17 ++++++++++-------
 2 files changed, 15 insertions(+), 12 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list