PostGIS  2.5.7dev-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.

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 }
#define FLAGS_SET_M(flags, value)
Definition: liblwgeom.h:147
#define FLAGS_SET_Z(flags, value)
Definition: liblwgeom.h:146
double y
Definition: lwin_wkt.h:36
double m
Definition: lwin_wkt.h:38
double z
Definition: lwin_wkt.h:37
double x
Definition: lwin_wkt.h:35
uint8_t flags
Definition: lwin_wkt.h:34
Definition: lwin_wkt.h:33

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