[SCM] PostGIS branch master updated. 3.4.0rc1-835-ga42b887b4

git at osgeo.org git at osgeo.org
Fri Dec 8 17:01:46 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  a42b887b43c41f6d22cc51e95094504c19669304 (commit)
      from  cc5770c47fc299f1d70d2b4aaae29bdfaf8279b4 (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 a42b887b43c41f6d22cc51e95094504c19669304
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Fri Dec 8 17:01:44 2023 -0800

    Add doc images for ST_SimplifyVW

diff --git a/doc/html/images/Makefile.in b/doc/html/images/Makefile.in
index f7108eef7..04c7e141e 100644
--- a/doc/html/images/Makefile.in
+++ b/doc/html/images/Makefile.in
@@ -208,6 +208,8 @@ GENERATED_IMAGES= \
 	st_simplifypolygonhull03.png \
 	st_simplifypreservetopology01.png \
 	st_simplifypreservetopology02.png \
+	st_simplifyvw01.png \
+	st_simplifyvw02.png \
 	st_straightskeleton01.png \
 	st_approximatemedialaxis01.png \
 	st_subdivide01.png \
diff --git a/doc/html/images/wkt/st_simplifyvw01.wkt b/doc/html/images/wkt/st_simplifyvw01.wkt
new file mode 100644
index 000000000..530cd64a1
--- /dev/null
+++ b/doc/html/images/wkt/st_simplifyvw01.wkt
@@ -0,0 +1,2 @@
+Result;LINESTRING (10 10, 100 100, 100 180, 150 170, 190 90, 150 20)
+ArgA-thin;LINESTRING (10 10, 50 40, 30 70, 50 60, 70 80, 50 110, 100 100, 90 140, 100 180, 150 170, 170 140, 190 90, 180 40, 110 40, 150 20)
diff --git a/doc/html/images/wkt/st_simplifyvw02.wkt b/doc/html/images/wkt/st_simplifyvw02.wkt
new file mode 100644
index 000000000..e096e93f2
--- /dev/null
+++ b/doc/html/images/wkt/st_simplifyvw02.wkt
@@ -0,0 +1,2 @@
+ArgA-thin;POLYGON ((20 20, 50 60, 20 120, 40 170, 80 180, 120 140, 180 180, 160 130, 180 100, 180 30, 130 70, 150 10, 20 20))
+Result;POLYGON ((20 20, 20 120, 80 180, 180 100, 180 30, 20 20))
diff --git a/doc/reference_processing.xml b/doc/reference_processing.xml
index 324b42d8b..b43da8e0c 100644
--- a/doc/reference_processing.xml
+++ b/doc/reference_processing.xml
@@ -2713,7 +2713,7 @@ MULTILINESTRING((76 175,90 161),(90 161,101 150),(126 125,126 156.25)))
     40);
 </programlisting>
 
-    <para>Simplifying a MultiPolygon.  Polygonal results may be invalid</para>
+    <para>Simplifying a MultiPolygon.  Polygonal results may be invalid.</para>
     <informalfigure>
       <mediaobject>
         <imageobject>
@@ -2959,7 +2959,7 @@ FROM (SELECT ST_Buffer('POINT(1 3)', 10,12) AS geom) AS t;
         <para> Returns a simplified representation of a geometry using the 
         <link xlink:href="https://en.wikipedia.org/wiki/Visvalingam%E2%80%93Whyatt_algorithm">Visvalingam-Whyatt algorithm</link>.
             The simplification <varname>tolerance</varname> is an area value, in the units of the input SRS.
-            Simplification removes vertices which form "corners" with an area less than the area tolerance.
+            Simplification removes vertices which form "corners" with area less than the tolerance.
             The result may not be valid even if the input is.
             </para>
           <para>
@@ -2980,15 +2980,40 @@ FROM (SELECT ST_Buffer('POINT(1 3)', 10,12) AS geom) AS t;
             <title>Examples</title>
             <para>A LineString is simplified with a minimum-area tolerance of 30.</para>
                 <programlisting>
+SELECT ST_AsText(ST_SimplifyVW(geom,30)) simplified
+  FROM (SELECT 'LINESTRING(5 2, 3 8, 6 20, 7 25, 10 10)'::geometry AS geom) AS t;
 
-select ST_AsText(ST_SimplifyVW(geom,30)) simplified
-FROM (SELECT  'LINESTRING(5 2, 3 8, 6 20, 7 25, 10 10)'::geometry geom) As foo;
--result
  simplified
 ------------------------------
 LINESTRING(5 2,7 25,10 10)
+</programlisting>
+
+    <para>Simplifying a line.</para>
+    <informalfigure>
+      <mediaobject>
+        <imageobject>
+          <imagedata fileref="images/st_simplifyvw01.png"/>
+        </imageobject>
+      </mediaobject>
+    </informalfigure>
+    <programlisting>SELECT ST_SimplifyVW(
+  'LINESTRING (10 10, 50 40, 30 70, 50 60, 70 80, 50 110, 100 100, 90 140, 100 180, 150 170, 170 140, 190 90, 180 40, 110 40, 150 20)',
+    1600);
+</programlisting>
+
+    <para>Simplifying a polygon.</para>
+    <informalfigure>
+      <mediaobject>
+        <imageobject>
+          <imagedata fileref="images/st_simplifyvw02.png"/>
+        </imageobject>
+      </mediaobject>
+    </informalfigure>
+    <programlisting>SELECT ST_Simplify(
+  'MULTIPOLYGON (((90 110, 80 180, 50 160, 10 170, 10 140, 20 110, 90 110)), ((40 80, 100 100, 120 160, 170 180, 190 70, 140 10, 110 40, 60 40, 40 80), (180 70, 170 110, 142.5 128.5, 128.5 77.5, 90 60, 180 70)))',
+    40);
+</programlisting>
 
-                </programlisting>
           </refsection>
           <refsection>
             <title>See Also</title>

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

Summary of changes:
 doc/html/images/Makefile.in             |  2 ++
 doc/html/images/wkt/st_simplifyvw01.wkt |  2 ++
 doc/html/images/wkt/st_simplifyvw02.wkt |  2 ++
 doc/reference_processing.xml            | 37 +++++++++++++++++++++++++++------
 4 files changed, 37 insertions(+), 6 deletions(-)
 create mode 100644 doc/html/images/wkt/st_simplifyvw01.wkt
 create mode 100644 doc/html/images/wkt/st_simplifyvw02.wkt


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list