[postgis-tickets] r15092 - Add test for ST_SwapOrdinate fix (#3628)
Sandro Santilli
strk at kbt.io
Fri Sep 9 07:23:24 PDT 2016
Author: strk
Date: 2016-09-09 07:23:24 -0700 (Fri, 09 Sep 2016)
New Revision: 15092
Modified:
trunk/regress/swapordinates.sql
trunk/regress/swapordinates_expected
Log:
Add test for ST_SwapOrdinate fix (#3628)
Modified: trunk/regress/swapordinates.sql
===================================================================
--- trunk/regress/swapordinates.sql 2016-09-09 14:23:03 UTC (rev 15091)
+++ trunk/regress/swapordinates.sql 2016-09-09 14:23:24 UTC (rev 15092)
@@ -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: trunk/regress/swapordinates_expected
===================================================================
--- trunk/regress/swapordinates_expected 2016-09-09 14:23:03 UTC (rev 15091)
+++ trunk/regress/swapordinates_expected 2016-09-09 14:23:24 UTC (rev 15092)
@@ -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