[postgis-tickets] [SCM] PostGIS branch master updated. 3.1.0alpha2-47-g99d8904
git at osgeo.org
git at osgeo.org
Wed Aug 12 11:55:20 PDT 2020
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 99d890475aff67551cac4a3d06cbfe2c222fe581 (commit)
from fdf3262eb1c30ba83f034886604421e1faf15db6 (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 99d890475aff67551cac4a3d06cbfe2c222fe581
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Wed Aug 12 11:55:13 2020 -0700
Roundoff Curve->Line output to 0.001 for test
diff --git a/regress/core/tickets.sql b/regress/core/tickets.sql
index 83a0ff1..37846fc 100644
--- a/regress/core/tickets.sql
+++ b/regress/core/tickets.sql
@@ -792,9 +792,9 @@ SELECT '#2412', ST_AsText(ST_LineToCurve('LINESTRING(0 0,10 0,20 0)'));
SELECT '#2420.1', ST_AsText(ST_LineToCurve('LINESTRING(0 0,10 0,10 10,0 10,0 0)'));
SELECT '#2420.2', ST_AsText(ST_LineToCurve('LINESTRING(0 0,10 0,10 10,0 10)'));
-SELECT '#2423', ST_AsText(ST_CurveToLine(ST_LineToCurve(
+SELECT '#2423', ST_AsText(ST_SnapToGrid(ST_CurveToLine(ST_LineToCurve(
ST_Normalize(ST_Intersection(ST_Buffer(ST_Point(0,0),10),ST_MakeEnvelope(-10,0,10,10)))
-), 4), 3);
+), 4), 0.0001), 3);
SELECT '#2424', ST_AsText(ST_SnapToGrid(ST_CurveToLine(
'MULTICURVE(COMPOUNDCURVE((0 0, 10 0),CIRCULARSTRING(10 0, 20 1, 30 10)))',
diff --git a/regress/core/tickets_expected b/regress/core/tickets_expected
index 53fde31..a495b41 100644
--- a/regress/core/tickets_expected
+++ b/regress/core/tickets_expected
@@ -252,7 +252,7 @@ ERROR: invalid GML representation
#2412|LINESTRING(0 0,10 0,20 0)
#2420.1|LINESTRING(0 0,10 0,10 10,0 10,0 0)
#2420.2|LINESTRING(0 0,10 0,10 10,0 10)
-#2423|POLYGON((-10 0,-9.239 3.827,-7.071 7.071,-3.827 9.239,1.716e-15 10,3.827 9.239,7.071 7.071,9.239 3.827,10 0,-10 0))
+#2423|POLYGON((-10 0,-9.239 3.827,-7.071 7.071,-3.827 9.239,0 10,3.827 9.239,7.071 7.071,9.239 3.827,10 0,-10 0))
#2424|MULTILINESTRING((0 0,10 0,24 3,30 10))
#2427|POINT(-1 0)
#2168|5340.76237395|5340.76237395|0
-----------------------------------------------------------------------
Summary of changes:
regress/core/tickets.sql | 4 ++--
regress/core/tickets_expected | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list