PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ gserialized2_copy_point()

static void gserialized2_copy_point ( double *  dptr,
lwflags_t  flags,
POINT4D out_point 
)
inlinestatic

Definition at line 532 of file gserialized2.c.

533 {
534  uint8_t dim = 0;
535  out_point->x = dptr[dim++];
536  out_point->y = dptr[dim++];
537 
538  if (G2FLAGS_GET_Z(flags))
539  {
540  out_point->z = dptr[dim++];
541  }
542  if (G2FLAGS_GET_M(flags))
543  {
544  out_point->m = dptr[dim];
545  }
546 }
#define G2FLAGS_GET_Z(gflags)
Definition: gserialized2.h:22
#define G2FLAGS_GET_M(gflags)
Definition: gserialized2.h:23
double m
Definition: liblwgeom.h:414
double x
Definition: liblwgeom.h:414
double z
Definition: liblwgeom.h:414
double y
Definition: liblwgeom.h:414

References G2FLAGS_GET_M, G2FLAGS_GET_Z, POINT4D::m, POINT4D::x, POINT4D::y, and POINT4D::z.

Referenced by gserialized2_peek_first_point().

Here is the caller graph for this function: