]> granicus.if.org Git - postgis/commitdiff
Add lost rounding for PG12
authorDarafei Praliaskouski <me@komzpa.net>
Wed, 20 Feb 2019 07:28:14 +0000 (07:28 +0000)
committerDarafei Praliaskouski <me@komzpa.net>
Wed, 20 Feb 2019 07:28:14 +0000 (07:28 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@17264 b70326c6-7e19-0410-871a-916f4a2858ee

regress/core/measures.sql

index a2b420ccba7b871cdeda5215cf76478aab40f337..b43cda499435cdad7dea95a835eb5883248e94c7 100644 (file)
@@ -107,22 +107,22 @@ select
 
 select 'distancepoly2',
                ST_Distance(a, b),
-                       st_maxdistance(a, b),
-                               st_astext(st_shortestline(a,b)),
-                                       st_astext(st_shortestline(b,a)),
-                                               st_astext(st_longestline(a,b)),
-                                                       st_astext(st_longestline(b,a)) from (
+               st_maxdistance(a, b)::numeric(12,6),
+               st_astext(st_shortestline(a,b)),
+               st_astext(st_shortestline(b,a)),
+               st_astext(st_longestline(a,b)),
+               st_astext(st_longestline(b,a)) from (
        select ST_GeomFromText('POLYGON((17 14, 16 17, 17 18, 17 17, 17 14))') as a,
                        ST_GeomFromText('POLYGON((-1 -1, -1 25, 25 25, 25 -1, -1 -1), (14 14,14 19,19 19,19 14,14 14))') as b
        ) as foo;
 
 select 'distancepoly3',
                ST_Distance(a, b),
-                       st_maxdistance(a, b)::numeric(12,6),
-                               st_astext(st_shortestline(a,b)),
-                                       st_astext(st_shortestline(b,a)),
-                                               st_astext(st_longestline(a,b)),
-                                                       st_astext(st_longestline(b,a)) from (
+               st_maxdistance(a, b)::numeric(12,6),
+               st_astext(st_shortestline(a,b)),
+               st_astext(st_shortestline(b,a)),
+               st_astext(st_longestline(a,b)),
+               st_astext(st_longestline(b,a)) from (
        select ST_GeomFromText('POLYGON((17 16, 16 17, 17 19, 17 17, 17 16))') as a,
                        ST_GeomFromText('POLYGON((-1 -1, -1 25, 25 25, 25 -1, -1 -1), (14 14,14 19,19 19,19 14,14 14))') as b
        ) as foo;