PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ wkt_parser_coord_3()

POINT wkt_parser_coord_3 ( double  c1,
double  c2,
double  c3 
)

Note, if this is an XYM coordinate we'll have to fix it later when we build the object itself and have access to the dimensionality token.

Definition at line 223 of file lwin_wkt.c.

References POINT::flags, FLAGS_SET_M, FLAGS_SET_Z, POINT::m, POINT::x, POINT::y, and POINT::z.

Referenced by yyparse().

224 {
225  POINT p;
226  p.flags = 0;
227  p.x = c1;
228  p.y = c2;
229  p.z = c3;
230  p.m = 0;
231  FLAGS_SET_Z(p.flags, 1);
232  FLAGS_SET_M(p.flags, 0);
233  return p;
234 }
double x
Definition: lwin_wkt.h:10
double m
Definition: lwin_wkt.h:13
double y
Definition: lwin_wkt.h:11
#define FLAGS_SET_Z(flags, value)
Definition: liblwgeom.h:130
double z
Definition: lwin_wkt.h:12
Definition: lwin_wkt.h:7
uint8_t flags
Definition: lwin_wkt.h:9
#define FLAGS_SET_M(flags, value)
Definition: liblwgeom.h:131
Here is the caller graph for this function: