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

◆ gserialized1_from_lwpoint_size()

static size_t gserialized1_from_lwpoint_size ( const LWPOINT point)
static

Definition at line 587 of file gserialized1.c.

588{
589 size_t size = 4; /* Type number. */
590
591 assert(point);
592
593 size += 4; /* Number of points (one or zero (empty)). */
594 size += point->point->npoints * FLAGS_NDIMS(point->flags) * sizeof(double);
595
596 LWDEBUGF(3, "point size = %d", size);
597
598 return size;
599}
#define FLAGS_NDIMS(flags)
Definition liblwgeom.h:193
#define LWDEBUGF(level, msg,...)
Definition lwgeom_log.h:88
POINTARRAY * point
Definition liblwgeom.h:457
lwflags_t flags
Definition liblwgeom.h:459
uint32_t npoints
Definition liblwgeom.h:413

References LWPOINT::flags, FLAGS_NDIMS, LWDEBUGF, POINTARRAY::npoints, and LWPOINT::point.

Referenced by gserialized1_from_any_size().

Here is the caller graph for this function: