[postgis-tickets] r15090 - Add test for ST_SwapOrdinate fix (#3628)

Sandro Santilli strk at kbt.io
Fri Sep 9 07:22:55 PDT 2016


Author: strk
Date: 2016-09-09 07:22:54 -0700 (Fri, 09 Sep 2016)
New Revision: 15090

Modified:
   branches/2.2/regress/swapordinates.sql
   branches/2.2/regress/swapordinates_expected
Log:
Add test for ST_SwapOrdinate fix (#3628)

Modified: branches/2.2/regress/swapordinates.sql
===================================================================
--- branches/2.2/regress/swapordinates.sql	2016-09-09 14:16:18 UTC (rev 15089)
+++ branches/2.2/regress/swapordinates.sql	2016-09-09 14:22:54 UTC (rev 15090)
@@ -13,3 +13,6 @@
 SELECT 'swap2', ST_AsText(ST_SwapOrdinates('POINTM(0 1 2)','my'));
 SELECT 'swap3', ST_AsText(ST_SwapOrdinates('POINTZM(0 1 2 3)','mz'));
 SELECT 'swap4', ST_AsText(ST_SwapOrdinates('MULTICURVE ZM ((5 5 1 3, 3 5 2 2, 3 3 3 1, 0 3 1 1), CIRCULARSTRING ZM (0 0 0 0, 0.2 1 3 -2, 0.5 1.4 1 2), COMPOUNDCURVE ZM (CIRCULARSTRING ZM (0 0 0 0,1 1 1 2,1 0 0 1),(1 0 0 1,0 1 5 4)))','my'));
+
+select '#3628.1', ST_AsText(ST_SwapOrdinates('POINT(1 2 3)', 'XY'));
+select '#3628.2', ST_AsText(ST_SwapOrdinates('POINT(1 2 3)', 'YZ'));

Modified: branches/2.2/regress/swapordinates_expected
===================================================================
--- branches/2.2/regress/swapordinates_expected	2016-09-09 14:16:18 UTC (rev 15089)
+++ branches/2.2/regress/swapordinates_expected	2016-09-09 14:22:54 UTC (rev 15090)
@@ -8,3 +8,5 @@
 swap2|POINT M (0 2 1)
 swap3|POINT ZM (0 1 3 2)
 swap4|MULTICURVE ZM ((5 3 1 5,3 2 2 5,3 1 3 3,0 1 1 3),CIRCULARSTRING ZM (0 0 0 0,0.2 -2 3 1,0.5 2 1 1.4),COMPOUNDCURVE ZM (CIRCULARSTRING ZM (0 0 0 0,1 2 1 1,1 1 0 0),(1 1 0 0,0 4 5 1)))
+#3628.1|POINT Z (2 1 3)
+#3628.2|POINT Z (1 3 2)



More information about the postgis-tickets mailing list