[SCM] PostGIS branch master updated. 3.5.0-294-g67756f36b
git at osgeo.org
git at osgeo.org
Mon Apr 28 05:03:33 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 67756f36be35c77709a7e1e0d09361ad51c8f006 (commit)
from 05e8b482bfd4eb4e985d86d17a3cf13234515d00 (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 67756f36be35c77709a7e1e0d09361ad51c8f006
Author: Loïc Bartoletti <loic.bartoletti at oslandia.com>
Date: Fri Apr 25 07:48:22 2025 +0200
tests(CG_Visibility): reinstate and fix Visibility segment in polygon
diff --git a/sfcgal/regress/tests.mk.in b/sfcgal/regress/tests.mk.in
index fd5bef62b..d160823d3 100644
--- a/sfcgal/regress/tests.mk.in
+++ b/sfcgal/regress/tests.mk.in
@@ -25,7 +25,11 @@ endif
ifeq ($(shell expr "$(POSTGIS_SFCGAL_VERSION)" ">=" 10500),1)
TESTS += \
$(top_srcdir)/sfcgal/regress/partition.sql \
- $(top_srcdir)/sfcgal/regress/extrudestraigthskeleton.sql \
+ $(top_srcdir)/sfcgal/regress/extrudestraigthskeleton.sql
+endif
+
+ifeq ($(shell expr "$(POSTGIS_SFCGAL_VERSION)" ">=" 10501),1)
+ TESTS += \
$(top_srcdir)/sfcgal/regress/visibility.sql
endif
diff --git a/sfcgal/regress/visibility.sql b/sfcgal/regress/visibility.sql
index 91b04bfc7..392bd40dd 100644
--- a/sfcgal/regress/visibility.sql
+++ b/sfcgal/regress/visibility.sql
@@ -1,4 +1,4 @@
SELECT 'Visibility point in polygon', ST_AsText(CG_Visibility('POLYGON((0.0 4.0,0.0 0.0,3.0 2.0,4.0 0.0,4.0 4.0,1.0 2.0,0.0 4.0))', 'POINT(0.5 2.0)'), 2);
SELECT 'Visibility point in polygon with hole', ST_AsText(CG_Visibility('POLYGON((0.0 4.0,0.0 0.0,3.0 2.0,4.0 0.0,4.0 4.0,1.0 2.0,0.0 4.0),(0.2 1.8,0.9 1.8,0.7 1.2,0.2 1.8))', 'POINT(0.5 2.0)'), 2);
---SELECT 'Visibility segment in polygon', ST_AsText(CG_Visibility('POLYGON((0.0 4.0,0.0 0.0,3.0 2.0,4.0 0.0,4.0 4.0,1.0 2.0,0.0 4.0))', 'POINT(1.0 2.0)', 'POINT(4.0 4.0)'), 2);
+SELECT 'Visibility segment in polygon', ST_AsText(CG_Visibility('POLYGON((0.0 4.0,0.0 0.0,3.0 2.0,4.0 0.0,4.0 4.0,1.0 2.0,0.0 4.0))', 'POINT(1.0 2.0)', 'POINT(4.0 4.0)'), 2);
SELECT 'Visibility segment in polygon with hole', ST_AsText(CG_Visibility('POLYGON((1.0 2.0,12.0 3.0,19.0 -2.0,12.0 6.0,14.0 14.0,9.0 5.0,1.0 2.0),(8.0 3.0,8.0 4.0,10.0 3.0,8.0 3.0),(10.0 6.0,11.0 7.0,11.0 6.0,10.0 6.0))', 'POINT(19.0 -2.0)', 'POINT(12.0 6.0)'), 2);
diff --git a/sfcgal/regress/visibility_expected b/sfcgal/regress/visibility_expected
index 7ecc5da92..b0bc3172b 100644
--- a/sfcgal/regress/visibility_expected
+++ b/sfcgal/regress/visibility_expected
@@ -1,3 +1,4 @@
Visibility point in polygon|POLYGON((3 2,1 2,0 4,0 0,3 2))
Visibility point in polygon with hole|POLYGON((0 1.67,0.2 1.8,0.9 1.8,1.93 1.29,3 2,1 2,0 4,0 1.67))
+Visibility segment in polygon|POLYGON((4 0,4 4,1 2,0 1.33,0 0,3 2,4 0))
Visibility segment in polygon with hole|POLYGON((19 -2,12 6,14 14,10.43 7.57,11 7,11 6,10 6,9.56 6,9 5,1 2,4.67 2.33,8 4,10 3,9.87 2.81,12 3,19 -2))
-----------------------------------------------------------------------
Summary of changes:
sfcgal/regress/tests.mk.in | 6 +++++-
sfcgal/regress/visibility.sql | 2 +-
sfcgal/regress/visibility_expected | 1 +
3 files changed, 7 insertions(+), 2 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list