PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ ordname2ordval()

static LWORD ordname2ordval ( char  n)
static

Definition at line 2823 of file lwgeom_functions_basic.c.

2824 {
2825  if ( n == 'x' || n == 'X' ) return LWORD_X;
2826  if ( n == 'y' || n == 'Y' ) return LWORD_Y;
2827  if ( n == 'z' || n == 'Z' ) return LWORD_Z;
2828  if ( n == 'm' || n == 'M' ) return LWORD_M;
2829  lwpgerror("Invalid ordinate name '%c'. Expected x,y,z or m", n);
2830  return (LWORD)-1;
2831 }
@ LWORD_Z
Definition: liblwgeom.h:116
@ LWORD_M
Definition: liblwgeom.h:117
@ LWORD_Y
Definition: liblwgeom.h:115
@ LWORD_X
Definition: liblwgeom.h:114
enum LWORD_T LWORD
Ordinate names.

References LWORD_M, LWORD_X, LWORD_Y, and LWORD_Z.

Referenced by ST_SwapOrdinates().

Here is the caller graph for this function: