[postgis-tickets] r15088 - Fix lack of support for capitalized-Y in SwapOrdinates

Sandro Santilli strk at kbt.io
Fri Sep 9 07:02:33 PDT 2016


Author: strk
Date: 2016-09-09 07:02:32 -0700 (Fri, 09 Sep 2016)
New Revision: 15088

Modified:
   trunk/postgis/lwgeom_functions_basic.c
Log:
Fix lack of support for capitalized-Y in SwapOrdinates

Closes #3628

Modified: trunk/postgis/lwgeom_functions_basic.c
===================================================================
--- trunk/postgis/lwgeom_functions_basic.c	2016-09-09 14:02:28 UTC (rev 15087)
+++ trunk/postgis/lwgeom_functions_basic.c	2016-09-09 14:02:32 UTC (rev 15088)
@@ -2701,7 +2701,7 @@
 static LWORD ordname2ordval(char n)
 {
   if ( n == 'x' || n == 'X' ) return LWORD_X;
-  if ( n == 'y' || n == 'y' ) return LWORD_Y;
+  if ( n == 'y' || n == 'Y' ) return LWORD_Y;
   if ( n == 'z' || n == 'Z' ) return LWORD_Z;
   if ( n == 'm' || n == 'M' ) return LWORD_M;
   lwpgerror("Invalid ordinate name '%c'. Expected x,y,z or m", n);



More information about the postgis-tickets mailing list