PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ wkt_parser_coord_2()

POINT wkt_parser_coord_2 ( double  c1,
double  c2 
)

Build a 2d coordinate.

Definition at line 221 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().

222 {
223  POINT p;
224  p.flags = 0;
225  p.x = c1;
226  p.y = c2;
227  p.z = p.m = 0.0;
228  FLAGS_SET_Z(p.flags, 0);
229  FLAGS_SET_M(p.flags, 0);
230  return p;
231 }
double x
Definition: lwin_wkt.h:35
double m
Definition: lwin_wkt.h:38
double y
Definition: lwin_wkt.h:36
#define FLAGS_SET_Z(flags, value)
Definition: liblwgeom.h:145
double z
Definition: lwin_wkt.h:37
Definition: lwin_wkt.h:32
uint8_t flags
Definition: lwin_wkt.h:34
#define FLAGS_SET_M(flags, value)
Definition: liblwgeom.h:146
Here is the caller graph for this function: