PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ ordname2ordval()

static LWORD ordname2ordval ( char  n)
static

Definition at line 2807 of file lwgeom_functions_basic.c.

References LWORD_M, LWORD_X, LWORD_Y, LWORD_Z, PG_FUNCTION_INFO_V1(), and ST_SwapOrdinates().

Referenced by ST_SwapOrdinates().

2808 {
2809  if ( n == 'x' || n == 'X' ) return LWORD_X;
2810  if ( n == 'y' || n == 'Y' ) return LWORD_Y;
2811  if ( n == 'z' || n == 'Z' ) return LWORD_Z;
2812  if ( n == 'm' || n == 'M' ) return LWORD_M;
2813  lwpgerror("Invalid ordinate name '%c'. Expected x,y,z or m", n);
2814  return (LWORD)-1;
2815 }
enum LWORD_T LWORD
Ordinate names.
Here is the call graph for this function:
Here is the caller graph for this function: