PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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 237 of file lwin_wkt.c.

238{
239 POINT p;
240 p.flags = 0;
241 p.x = c1;
242 p.y = c2;
243 p.z = c3;
244 p.m = 0;
245 FLAGS_SET_Z(p.flags, 1);
246 FLAGS_SET_M(p.flags, 0);
247 return p;
248}
#define FLAGS_SET_M(flags, value)
Definition liblwgeom.h:173
#define FLAGS_SET_Z(flags, value)
Definition liblwgeom.h:172
double y
Definition lwin_wkt.h:36
double m
Definition lwin_wkt.h:38
lwflags_t flags
Definition lwin_wkt.h:34
double z
Definition lwin_wkt.h:37
double x
Definition lwin_wkt.h:35

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