[SCM] PostGIS branch master updated. 3.5.0-259-g4c6e1317d
git at osgeo.org
git at osgeo.org
Thu Apr 10 08:41:30 PDT 2025
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 4c6e1317d994d54b6584e45169f3ecdf3a6cd44c (commit)
from db01aa06e3710cd034bbdf08740ed5fae2900f12 (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 4c6e1317d994d54b6584e45169f3ecdf3a6cd44c
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Thu Apr 10 08:41:22 2025 -0700
Add note on corner case to CG_StraightSkeleton, closes #5867
diff --git a/doc/reference_sfcgal.xml b/doc/reference_sfcgal.xml
index 225963886..375344fe6 100644
--- a/doc/reference_sfcgal.xml
+++ b/doc/reference_sfcgal.xml
@@ -2558,9 +2558,21 @@ ST_GeomFromText('POLYHEDRALSURFACE Z( ((0 0 0, 0 0 1, 0 1 1, 0 1 0, 0 0 0)),
</refsection>
<refsection><title>Examples</title>
+
<programlisting>SELECT CG_StraightSkeleton(ST_GeomFromText('POLYGON (( 190 190, 10 190, 10 10, 190 10, 190 20, 160 30, 60 30, 60 130, 190 140, 190 190 ))'));</programlisting>
- <programlisting>ST_AsText(CG_StraightSkeleton('POLYGON((0 0,1 0,1 1,0 1,0 0))', true);</programlisting>
- <screen>MULTILINESTRING M ((0 0 0,0.5 0.5 0.5),(1 0 0,0.5 0.5 0.5),(1 1 0,0.5 0.5 0.5),(0 1 0,0.5 0.5 0.5))</screen>
+
+ <programlisting>SELECT ST_AsText(CG_StraightSkeleton('POLYGON((0 0,1 0,1 1,0 1,0 0))', true);
+
+MULTILINESTRING M ((0 0 0,0.5 0.5 0.5),(1 0 0,0.5 0.5 0.5),(1 1 0,0.5 0.5 0.5),(0 1 0,0.5 0.5 0.5))</programlisting>
+
+ <para>Note that valid inputs with rings that touch at a single point will raise an error.</para>
+ <programlisting>SELECT CG_StraightSkeleton(
+'POLYGON((0 0, 3 0, 3 3, 0 3, 0 0), (0 0, 1 2, 2 1, 0 0))'));
+
+NOTICE: During straight_skeleton(A) :
+NOTICE: with A: POLYGON((0/1 0/1,3/1 0/1,3/1 3/1,0/1 3/1,0/1 0/1),(0/1 0/1,1/1 2/1,2/1 1/1,0/1 0/1))
+ERROR: straight skeleton of Polygon with point touching rings is not implemented.
+</programlisting>
<informaltable>
<tgroup cols="2">
-----------------------------------------------------------------------
Summary of changes:
doc/reference_sfcgal.xml | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list