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

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


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

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

Closes #3628

Modified: branches/2.2/postgis/lwgeom_functions_basic.c
===================================================================
--- branches/2.2/postgis/lwgeom_functions_basic.c	2016-09-08 16:06:47 UTC (rev 15086)
+++ branches/2.2/postgis/lwgeom_functions_basic.c	2016-09-09 14:02:28 UTC (rev 15087)
@@ -2639,7 +2639,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