]> granicus.if.org Git - postgis/commitdiff
Avoid -0 in output
authorSandro Santilli <strk@keybit.net>
Tue, 4 Aug 2015 09:02:04 +0000 (09:02 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 4 Aug 2015 09:02:04 +0000 (09:02 +0000)
Fixes test run with SFCGAL 1.2.0.
See #3171

git-svn-id: http://svn.osgeo.org/postgis/trunk@13869 b70326c6-7e19-0410-871a-916f4a2858ee

regress/regress_sfcgal.sql
regress/regress_sfcgal_expected

index 4937db7c27aa86bd79415f6893e8a6fb180d379d..bcc0079bedae5344ecf96aec8b7eb27f97115a98 100644 (file)
@@ -28,7 +28,7 @@ SELECT 'ST_ForceLHR', ST_AsText(ST_ForceLHR('POLYGON((0 0,0 1,1 1,1 0,0 0))'));
 SELECT 'ST_Orientation_1', ST_Orientation(ST_ForceLHR('POLYGON((0 0,0 1,1 1,1 0,0 0))'));
 SELECT 'ST_Orientation_2', ST_Orientation(ST_ForceRHR('POLYGON((0 0,0 1,1 1,1 0,0 0))'));
 SELECT 'ST_MinkowskiSum', ST_AsText(ST_MinkowskiSum('LINESTRING(0 0,4 0)','POLYGON((0 0,1 0,1 1,0 1,0 0))'));
-SELECT 'ST_StraightSkeleton', ST_AsText(ST_StraightSkeleton('POLYGON((0 0,1 0,1 1,0 1,0 0))'));
+SELECT 'ST_StraightSkeleton', ST_AsText(ST_StraightSkeleton('POLYGON((1 1,2 1,2 2,1 2,1 1))'));
 
 -- Backend switch tests
 SET postgis.backend = 'geos';
index d0f8d3c33bea06a6962285e727aa2ad9ef628c63..bf0491722556f5450642292534410504b3986970 100644 (file)
@@ -8,7 +8,7 @@ ST_ForceLHR|POLYGON((0 0,1 0,1 1,0 1,0 0))
 ST_Orientation_1|-1
 ST_Orientation_2|1
 ST_MinkowskiSum|MULTIPOLYGON(((0 0,1 0,5 0,5 1,4 1,0 1,0 0)))
-ST_StraightSkeleton|MULTILINESTRING((0 0,0.5 0.5),(1 0,0.5 0.5),(1 1,0.5 0.5),(0 1,0.5 0.5))
+ST_StraightSkeleton|MULTILINESTRING((1 1,1.5 1.5),(2 1,1.5 1.5),(2 2,1.5 1.5),(1 2,1.5 1.5))
 intersection_geos|POINT(0 0)
 intersection_sfcgal|POINT(-0 -0)
 ERROR:  Can't find foo geometry backend