PostGIS 3.7.0dev-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 588 of file gserialized1.c.

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

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: