[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0rc2-582-g1dd319f21

git at osgeo.org git at osgeo.org
Wed Feb 1 21:47:00 PST 2023


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  1dd319f21f1b79c6ae684f39e232dc8576276488 (commit)
      from  28e30feae61ec3af070c41b8a568e73db813e899 (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 1dd319f21f1b79c6ae684f39e232dc8576276488
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Wed Feb 1 21:51:29 2023 -0800

    Add doc example for ST_ConcaveHull

diff --git a/doc/html/image_src/Makefile.in b/doc/html/image_src/Makefile.in
index 0cd38c142..46be56a00 100644
--- a/doc/html/image_src/Makefile.in
+++ b/doc/html/image_src/Makefile.in
@@ -65,6 +65,8 @@ IMAGES= \
 	../images/st_contains08.png \
 	../images/st_concavehull01.png \
 	../images/st_concavehull02.png \
+	../images/st_concavehull03.png \
+	../images/st_concavehull04.png \
 	../images/st_convexhull01.png \
 	../images/st_crosses01.png \
 	../images/st_crosses02.png \
diff --git a/doc/html/image_src/st_concavehull03.wkt b/doc/html/image_src/st_concavehull03.wkt
new file mode 100644
index 000000000..f42edb9b7
--- /dev/null
+++ b/doc/html/image_src/st_concavehull03.wkt
@@ -0,0 +1,2 @@
+Result;POLYGON ((120 10, 100 60, 80 50, 50 10, 30 30, 10 190, 80 190, 100 190, 160 170, 190 110, 180 90, 140 20, 120 10))
+ArgA-thin;POLYGON ((10 190, 80 190, 120 130, 100 190, 160 170, 190 110, 40 120, 180 90, 140 20, 120 70, 120 10, 100 60, 80 50, 50 10, 30 30, 10 190))
diff --git a/doc/html/image_src/st_concavehull04.wkt b/doc/html/image_src/st_concavehull04.wkt
new file mode 100644
index 000000000..fd5b1e4e3
--- /dev/null
+++ b/doc/html/image_src/st_concavehull04.wkt
@@ -0,0 +1,3 @@
+Result;POLYGON ((40 120, 10 190, 80 190, 100 190, 160 170, 190 110, 180 90, 120 70, 140 20, 120 10, 50 10, 30 30, 80 50, 100 60, 120 130, 40 120))
+ArgA-thin;POLYGON ((10 190, 80 190, 120 130, 100 190, 160 170, 190 110, 40 120, 180 90, 140 20, 120 70, 120 10, 100 60, 80 50, 50 10, 30 30, 10 190))
+ArgA-thin;MULTIPOINT ((10 190), (80 190), (120 130), (100 190), (160 170), (190 110), (40 120), (180 90), (140 20), (120 70), (120 10), (100 60), (80 50), (50 10), (30 30), (10 190))
diff --git a/doc/reference_processing.xml b/doc/reference_processing.xml
index 860d33513..99eda3106 100644
--- a/doc/reference_processing.xml
+++ b/doc/reference_processing.xml
@@ -764,6 +764,47 @@ POLYGON ((43 69, 50 84, 57 100, 63 118, 68 133, 74 149, 81 164, 88 180, 101 180,
     </programlisting>
 </para>
 
+    <informaltable>
+      <tgroup cols="2">
+      <tbody>
+        <row>
+        <entry><para><informalfigure>
+          <mediaobject>
+            <imageobject>
+            <imagedata fileref="images/st_concavehull03.png" />
+            </imageobject>
+
+            <caption><para><varname>polygon_hull</varname></para></caption>
+          </mediaobject>
+          </informalfigure></para></entry>
+
+        <entry><para><informalfigure>
+          <mediaobject>
+            <imageobject>
+            <imagedata fileref="images/st_concavehull04.png" />
+            </imageobject>
+
+            <caption><para><varname>points_hull</varname></para></caption>
+          </mediaobject>
+          </informalfigure></para></entry>
+        </row>
+      </tbody>
+      </tgroup>
+    </informaltable>
+
+<para>Comparing a concave hull of a Polygon to the concave hull of the constituent points.
+The hull respects the boundary of the polygon, whereas the points-based hull does not.
+</para>
+
+<programlisting>
+WITH data(geom) AS (VALUES
+   ('POLYGON ((10 90, 39 85, 61 79, 50 90, 80 80, 95 55, 25 60, 90 45, 70 16, 63 38, 60 10, 50 30, 43 27, 30 10, 20 20, 10 90))'::geometry)
+)
+SELECT  ST_ConcaveHull( geom,            0.1) AS polygon_hull,
+        ST_ConcaveHull( ST_Points(geom), 0.1) AS points_hull
+    FROM data;
+</programlisting>
+
 <para>Using with ST_Collect to compute the concave hull of a geometry set.</para>
 
 <programlisting>

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

Summary of changes:
 doc/html/image_src/Makefile.in          |  2 ++
 doc/html/image_src/st_concavehull03.wkt |  2 ++
 doc/html/image_src/st_concavehull04.wkt |  3 +++
 doc/reference_processing.xml            | 41 +++++++++++++++++++++++++++++++++
 4 files changed, 48 insertions(+)
 create mode 100644 doc/html/image_src/st_concavehull03.wkt
 create mode 100644 doc/html/image_src/st_concavehull04.wkt


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list