[postgis-tickets] r15701 - Fix SFCGAL regress tests for #3844
Paul Ramsey
pramsey at cleverelephant.ca
Tue Sep 12 13:18:15 PDT 2017
Author: pramsey
Date: 2017-09-12 13:18:15 -0700 (Tue, 12 Sep 2017)
New Revision: 15701
Modified:
trunk/regress/sfcgal/concave_hull.sql
Log:
Fix SFCGAL regress tests for #3844
Modified: trunk/regress/sfcgal/concave_hull.sql
===================================================================
--- trunk/regress/sfcgal/concave_hull.sql 2017-09-12 19:44:32 UTC (rev 15700)
+++ trunk/regress/sfcgal/concave_hull.sql 2017-09-12 20:18:15 UTC (rev 15701)
@@ -15,8 +15,8 @@
) As geom;
SELECT
- 'ST_ConcaveHull Lines 0.80', ST_Intersection(geom,ST_ConcaveHull(
- geom, 0.80) ) = geom As encloses_geom,
+ 'ST_ConcaveHull Lines 0.80', ST_Within(geom,ST_ConcaveHull(
+ geom, 0.80) ) As encloses_geom,
(ST_Area(ST_ConvexHull(geom))
- ST_Area(ST_ConcaveHull(geom, 0.80))) < (0.80 * ST_Area(ST_ConvexHull(geom) ) ) As reached_target
@@ -31,8 +31,8 @@
-- test holes vs. no holes - holes should still enclose but have smaller area than no holes --
SELECT
- 'ST_ConcaveHull Lines 0.80 holes', ST_Intersection(geom,ST_ConcaveHull(
- geom, 0.80, true) ) = geom As encloses_geom,
+ 'ST_ConcaveHull Lines 0.80 holes', ST_Within(geom,ST_ConcaveHull(
+ geom, 0.80, true) ) As encloses_geom,
ST_Area(ST_ConcaveHull(geom, 0.80, true)) < ST_Area(ST_ConcaveHull(geom, 0.80)) As reached_target
FROM ST_GeomFromText('MULTILINESTRING((106 164,30 112,74 70,82 112,130 94,
More information about the postgis-tickets
mailing list