From: Regina Obe Date: Thu, 5 Sep 2013 08:11:43 +0000 (+0000) Subject: #2168 test to test non-commutative fix of geog ST_Distance X-Git-Tag: 2.2.0rc1~1374 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fdbd1de9263b614bb93559bbf86e51d297fb151;p=postgis #2168 test to test non-commutative fix of geog ST_Distance git-svn-id: http://svn.osgeo.org/postgis/trunk@11920 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/tickets.sql b/regress/tickets.sql index 58a6c9bfc..1eb0f5cc4 100644 --- a/regress/tickets.sql +++ b/regress/tickets.sql @@ -844,5 +844,8 @@ SELECT '#2424', ST_AsText(ST_SnapToGrid(ST_CurveToLine( SELECT '#2427', st_astext(st_pointn(ST_CurveToLine('CIRCULARSTRING(-1 0,0 1,0 -1)'),1)); +SELECT '#2168', ST_Distance(g1,g2) As dist_g1_g2, ST_Distance(g2,g1) AS dist_g2_g1 + FROM (SELECT 'POINT(18.5107234 54.7587757)'::geography As g1, 'POINT(18.58218 54.7344227)'::geography As g2) As a; + -- Clean up DELETE FROM spatial_ref_sys; diff --git a/regress/tickets_expected b/regress/tickets_expected index 1e34dbdce..879680237 100644 --- a/regress/tickets_expected +++ b/regress/tickets_expected @@ -252,3 +252,4 @@ ERROR: invalid GML representation #2423|POLYGON((-10 0,-9.2388 3.82683,-7.07107 7.07107,-3.82683 9.2388,0 10,3.82683 9.2388,7.07107 7.07107,9.2388 3.82683,10 0,-10 0)) #2424|MULTILINESTRING((0 0,10 0,24 3,30 10)) #2427|POINT(-1 0) +#2168|5340.762373947|5340.762373947