PostGIS  2.5.0dev-r@@SVN_REVISION@@
static LWORD ordname2ordval ( char  n)
static

Definition at line 2804 of file lwgeom_functions_basic.c.

References LWORD_M, LWORD_X, LWORD_Y, and LWORD_Z.

Referenced by ST_SwapOrdinates().

2805 {
2806  if ( n == 'x' || n == 'X' ) return LWORD_X;
2807  if ( n == 'y' || n == 'Y' ) return LWORD_Y;
2808  if ( n == 'z' || n == 'Z' ) return LWORD_Z;
2809  if ( n == 'm' || n == 'M' ) return LWORD_M;
2810  lwpgerror("Invalid ordinate name '%c'. Expected x,y,z or m", n);
2811  return (LWORD)-1;
2812 }
enum LWORD_T LWORD
Ordinate names.

Here is the caller graph for this function: