[postgis-tickets] [SCM] PostGIS branch stable-3.3 updated. 3.3.2-59-g2178cade6
git at osgeo.org
git at osgeo.org
Fri May 12 14:53:24 PDT 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, stable-3.3 has been updated
via 2178cade6c7703b1d3953973f308f21c015fa342 (commit)
from d775312e65494b40fb799fc62f66bed089dcd707 (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 2178cade6c7703b1d3953973f308f21c015fa342
Author: Sandro Santilli <strk at kbt.io>
Date: Tue May 9 17:48:00 2023 +0200
Normalize GEOS polygonal results from Buffer ops
diff --git a/regress/core/regress_buffer_params.sql b/regress/core/regress_buffer_params.sql
index ba9958611..cb239341d 100644
--- a/regress/core/regress_buffer_params.sql
+++ b/regress/core/regress_buffer_params.sql
@@ -14,10 +14,21 @@ SELECT 'line quadsegs=2 endcap=square', ST_AsText(st_buffer('LINESTRING(0 0, 10
SELECT 'line side=left',ST_AsText(ST_Buffer('LINESTRING(50 50,150 150,150 50)',10,'side=left'), 5);
SELECT 'line side=right',ST_AsText(ST_Buffer('LINESTRING(50 50,150 150,150 50)',10,'side=right'),5);
SELECT 'line side=left join=mitre',ST_AsText(ST_Buffer('LINESTRING(50 50,150 150,150 50)',10,'side=left join=mitre'),5);
-SELECT 'poly quadsegs=2 join=round', ST_AsText(st_buffer('POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))', 2, 'quad_segs=2 join=round'), 5);
-SELECT 'poly quadsegs=2 join=bevel', ST_AsText(st_buffer('POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))', 2, 'quad_segs=2 join=bevel'), 5);
+SELECT 'poly quadsegs=2 join=round', ST_AsText(ST_Normalize(st_buffer(
+ 'POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))',
+ 2, 'quad_segs=2 join=round'
+)), 5);
+SELECT 'poly quadsegs=2 join=bevel', ST_AsText(ST_Normalize(st_buffer(
+ 'POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))',
+ 2, 'quad_segs=2 join=bevel'
+)), 5);
--SELECT 'poly quadsegs=2 join=mitre', ST_AsText(st_buffer('POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))', 2, 'quad_segs=2 join=mitre'), 5);
--SELECT 'poly quadsegs=2 join=mitre mitre_limit=1', ST_AsText(st_buffer('POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))', 2, 'quad_segs=2 join=mitre mitre_limit=1'), 5);
--SELECT 'poly quadsegs=2 join=miter miter_limit=1', ST_AsText(st_buffer('POLYGON((0 0, 10 0, 10 10, 0 10, 0 0))', 2, 'quad_segs=2 join=miter miter_limit=1'), 5);
-SELECT 'poly boundary rhr side=left', ST_AsText(ST_Buffer(ST_ForceRHR(ST_Boundary('POLYGON ((20 20, 20 40, 40 40, 40 40, 40 20, 20 20))')),10,'join=mitre side=left'),5);
+SELECT 'poly boundary rhr side=left', ST_AsText(ST_Normalize(ST_Buffer(
+ ST_ForceRHR(ST_Boundary(
+ 'POLYGON ((20 20, 20 40, 40 40, 40 40, 40 20, 20 20))'
+ )),
+ 10,'join=mitre side=left'
+)),5);
diff --git a/regress/core/regress_buffer_params_expected b/regress/core/regress_buffer_params_expected
index 3a5e50f7a..d32aa2507 100644
--- a/regress/core/regress_buffer_params_expected
+++ b/regress/core/regress_buffer_params_expected
@@ -8,4 +8,4 @@ line side=right|POLYGON((50 50,150 150,150 50,140 50,140 125.85786,57.07107 42.9
line side=left join=mitre|POLYGON((150 50,150 150,50 50,42.92893 57.07107,160 174.14214,160 50,150 50))
poly quadsegs=2 join=round|POLYGON((-2 0,-2 10,-1.41421 11.41421,0 12,10 12,11.41421 11.41421,12 10,12 0,11.41421 -1.41421,10 -2,0 -2,-1.41421 -1.41421,-2 0))
poly quadsegs=2 join=bevel|POLYGON((-2 0,-2 10,0 12,10 12,12 10,12 0,10 -2,0 -2,-2 0))
-poly boundary rhr side=left|POLYGON((20 20,10 20,10 50,50 50,50 10,20 10,20 20),(20 20,40 20,40 40,20 40,20 20))
+poly boundary rhr side=left|POLYGON((10 20,10 50,50 50,50 10,20 10,20 20,10 20),(20 20,40 20,40 40,20 40,20 20))
-----------------------------------------------------------------------
Summary of changes:
regress/core/regress_buffer_params.sql | 17 ++++++++++++++---
regress/core/regress_buffer_params_expected | 2 +-
2 files changed, 15 insertions(+), 4 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list