]> granicus.if.org Git - postgis/commitdiff
#2168 test to test non-commutative fix of geog ST_Distance
authorRegina Obe <lr@pcorp.us>
Thu, 5 Sep 2013 08:11:43 +0000 (08:11 +0000)
committerRegina Obe <lr@pcorp.us>
Thu, 5 Sep 2013 08:11:43 +0000 (08:11 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11920 b70326c6-7e19-0410-871a-916f4a2858ee

regress/tickets.sql
regress/tickets_expected

index 58a6c9bfcfdbb0767238fb416a9aafade7dd1a71..1eb0f5cc4d40f4d0b4d903a9b5b76d10958aeb36 100644 (file)
@@ -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;
index 1e34dbdcea1b1cd0621fd9a36f50699f52917b66..8796802372229cca537ba24d85b8294ae7a787a2 100644 (file)
@@ -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