]> granicus.if.org Git - postgis/commitdiff
Fix SFCGAL regress tests for #3844
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 12 Sep 2017 20:18:15 +0000 (20:18 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 12 Sep 2017 20:18:15 +0000 (20:18 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@15701 b70326c6-7e19-0410-871a-916f4a2858ee

regress/sfcgal/concave_hull.sql

index 22e82ec11a6b60bf114dde6025ec1f8686dff6e7..00bc639eddb9ec44a9e425008553e43efaf017ff 100644 (file)
@@ -15,8 +15,8 @@ FROM ST_Union(ST_GeomFromText('POLYGON((175 150, 20 40,
                ) 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 @@ FROM ST_GeomFromText('MULTILINESTRING((106 164,30 112,74 70,82 112,130 94,
 
 -- 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,