[postgis-tickets] [SCM] PostGIS branch master updated. 3.2.0-436-g194ff371b

git at osgeo.org git at osgeo.org
Mon Jan 31 14:44:50 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  194ff371b4be829c29411690d36a673453446586 (commit)
      from  71bf4e8dd34e90ad1a40b8ccb36e3003ac9ee96e (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 194ff371b4be829c29411690d36a673453446586
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Mon Jan 31 14:44:46 2022 -0800

    Improve doc ST_GeometricMedian example

diff --git a/doc/html/image_src/Makefile.in b/doc/html/image_src/Makefile.in
index e11d3acb7..d2540a281 100644
--- a/doc/html/image_src/Makefile.in
+++ b/doc/html/image_src/Makefile.in
@@ -75,7 +75,6 @@ IMAGES= \
 	../images/st_extrude01.png \
 	../images/st_extrude03.png \
 	../images/st_generatepoints01.png \
-	../images/st_generatepoints02.png \
 	../images/st_geometricmedian01.png \
 	../images/st_issimple01.png \
 	../images/st_issimple02.png \
diff --git a/doc/html/image_src/st_generatepoints01.wkt b/doc/html/image_src/st_generatepoints01.wkt
index 19352c4d7..5fc1e271c 100644
--- a/doc/html/image_src/st_generatepoints01.wkt
+++ b/doc/html/image_src/st_generatepoints01.wkt
@@ -1 +1,2 @@
 ArgA;POLYGON((142.928932188135 157.071067811865,144.444297669804 158.314696123025,146.173165676349 159.238795325113,148.049096779839 159.807852804032,150 160,151.950903220161 159.807852804032,153.826834323651 159.238795325113,155.555702330196 158.314696123025,157.071067811865 157.071067811865,158.314696123025 155.555702330196,159.238795325113 153.826834323651,159.807852804032 151.950903220161,160 150,160 50,159.807852804032 48.0490967798387,159.238795325113 46.1731656763491,158.314696123025 44.444297669804,157.071067811865 42.9289321881345,155.555702330196 41.6853038769745,153.826834323651 40.7612046748871,151.950903220161 40.1921471959677,150 40,148.049096779839 40.1921471959677,146.173165676349 40.7612046748871,144.444297669804 41.6853038769745,142.928932188135 42.9289321881345,141.685303876975 44.444297669804,140.761204674887 46.1731656763491,140.192147195968 48.0490967798387,140 50,140 125.857864376269,57.0710678118655 42.9289321881345,55.555702330196 41.6853038769745,53.8268343
 236509 40.7612046748871,51.9509032201613 40.1921471959677,50 40,48.0490967798387 40.1921471959677,46.1731656763491 40.7612046748871,44.444297669804 41.6853038769745,42.9289321881345 42.9289321881345,41.6853038769746 44.444297669804,40.7612046748871 46.1731656763491,40.1921471959677 48.0490967798387,40 50,40.1921471959677 51.9509032201613,40.7612046748871 53.8268343236509,41.6853038769745 55.555702330196,42.9289321881345 57.0710678118655,142.928932188135 157.071067811865))
+Result;MULTIPOINT(124.719467098431 131.257475277821,155.60408218128 72.9518237434817,106.69719046413 119.774229927365,140.578248132556 153.822320976712,152.641957278627 87.2817137366839,143.433601275019 137.83621232774,94.5170191740369 89.6648113250309,157.562215520436 47.0045167465619,51.5256023126078 40.4134116206039,158.800069139342 117.796996865768,67.1788241389208 69.3638368956401,129.504207562589 133.236854414052)
diff --git a/doc/html/image_src/st_generatepoints02.wkt b/doc/html/image_src/st_generatepoints02.wkt
deleted file mode 100644
index 5fc1e271c..000000000
--- a/doc/html/image_src/st_generatepoints02.wkt
+++ /dev/null
@@ -1,2 +0,0 @@
-ArgA;POLYGON((142.928932188135 157.071067811865,144.444297669804 158.314696123025,146.173165676349 159.238795325113,148.049096779839 159.807852804032,150 160,151.950903220161 159.807852804032,153.826834323651 159.238795325113,155.555702330196 158.314696123025,157.071067811865 157.071067811865,158.314696123025 155.555702330196,159.238795325113 153.826834323651,159.807852804032 151.950903220161,160 150,160 50,159.807852804032 48.0490967798387,159.238795325113 46.1731656763491,158.314696123025 44.444297669804,157.071067811865 42.9289321881345,155.555702330196 41.6853038769745,153.826834323651 40.7612046748871,151.950903220161 40.1921471959677,150 40,148.049096779839 40.1921471959677,146.173165676349 40.7612046748871,144.444297669804 41.6853038769745,142.928932188135 42.9289321881345,141.685303876975 44.444297669804,140.761204674887 46.1731656763491,140.192147195968 48.0490967798387,140 50,140 125.857864376269,57.0710678118655 42.9289321881345,55.555702330196 41.6853038769745,53.8268343
 236509 40.7612046748871,51.9509032201613 40.1921471959677,50 40,48.0490967798387 40.1921471959677,46.1731656763491 40.7612046748871,44.444297669804 41.6853038769745,42.9289321881345 42.9289321881345,41.6853038769746 44.444297669804,40.7612046748871 46.1731656763491,40.1921471959677 48.0490967798387,40 50,40.1921471959677 51.9509032201613,40.7612046748871 53.8268343236509,41.6853038769745 55.555702330196,42.9289321881345 57.0710678118655,142.928932188135 157.071067811865))
-Result;MULTIPOINT(124.719467098431 131.257475277821,155.60408218128 72.9518237434817,106.69719046413 119.774229927365,140.578248132556 153.822320976712,152.641957278627 87.2817137366839,143.433601275019 137.83621232774,94.5170191740369 89.6648113250309,157.562215520436 47.0045167465619,51.5256023126078 40.4134116206039,158.800069139342 117.796996865768,67.1788241389208 69.3638368956401,129.504207562589 133.236854414052)
diff --git a/doc/html/image_src/st_geometricmedian01.wkt b/doc/html/image_src/st_geometricmedian01.wkt
index bfa5aa62a..611194358 100644
--- a/doc/html/image_src/st_geometricmedian01.wkt
+++ b/doc/html/image_src/st_geometricmedian01.wkt
@@ -1,3 +1,3 @@
 Result;POINT(25 25)
-ArgB;POINT(65 65)
-ArgA-thin;MULTIPOINT((20 20), (20 30), (30 20), (190 190))
+ArgB;POINT(63 63)
+ArgA;MULTIPOINT((10 10), (10 50), (50 10), (190 190))
diff --git a/doc/reference_processing.xml b/doc/reference_processing.xml
index ade1f14f3..290cf5454 100644
--- a/doc/reference_processing.xml
+++ b/doc/reference_processing.xml
@@ -1062,7 +1062,7 @@ FROM (SELECT  ST_SetEffectiveArea('LINESTRING(5 2, 3 8, 6 20, 7 25, 10 10)'::geo
 <para><informalfigure>
                         <mediaobject>
                           <imageobject>
-                            <imagedata fileref="images/st_generatepoints02.png" />
+                            <imagedata fileref="images/st_generatepoints01.png" />
                           </imageobject>
                           <caption><para>Generated 12 Points overlaid on top of original polygon using a random seed value 1996</para></caption>
                         </mediaobject>
@@ -1143,8 +1143,8 @@ FROM (
 
                     <caption>
                         <para>
-                        Comparison of the centroid (turquoise point) and geometric
-                        median (red point) of a four-point MultiPoint (yellow points).
+                        Comparison of the geometric median (red)
+                        and centroid (turquoise) of a MultiPoint.
                         </para>
                     </caption>
               </mediaobject>
@@ -1152,14 +1152,15 @@ FROM (
       </para>
       <programlisting>
 WITH test AS (
-SELECT 'MULTIPOINT((0 0), (1 1), (2 2), (200 200))'::geometry geom)
+SELECT 'MULTIPOINT((10 10), (10 40), (40 10), (190 190))'::geometry geom)
 SELECT
   ST_AsText(ST_Centroid(geom)) centroid,
   ST_AsText(ST_GeometricMedian(geom)) median
 FROM test;
+
       centroid      |                 median
 --------------------+----------------------------------------
- POINT(50.75 50.75) | POINT(1.9761550281255 1.9761550281255)
+   POINT(62.5 62.5) | POINT(25.01778421249728 25.01778421249728)
 (1 row)
       </programlisting>
     </refsection>

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

Summary of changes:
 doc/html/image_src/Makefile.in              |  1 -
 doc/html/image_src/st_generatepoints01.wkt  |  1 +
 doc/html/image_src/st_generatepoints02.wkt  |  2 --
 doc/html/image_src/st_geometricmedian01.wkt |  4 ++--
 doc/reference_processing.xml                | 11 ++++++-----
 5 files changed, 9 insertions(+), 10 deletions(-)
 delete mode 100644 doc/html/image_src/st_generatepoints02.wkt


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list