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

◆ gserialized1_from_lwline_size()

static size_t gserialized1_from_lwline_size ( const LWLINE line)
static

Definition at line 602 of file gserialized1.c.

603{
604 size_t size = 4; /* Type number. */
605
606 assert(line);
607
608 size += 4; /* Number of points (zero => empty). */
609 size += sizeof(double) * line->points->npoints * FLAGS_NDIMS(line->flags);
610
611 LWDEBUGF(3, "linestring size = %zu", size);
612
613 return size;
614}
#define FLAGS_NDIMS(flags)
Definition liblwgeom.h:179
#define LWDEBUGF(level, msg,...)
Definition lwgeom_log.h:106
lwflags_t flags
Definition liblwgeom.h:485
POINTARRAY * points
Definition liblwgeom.h:483
uint32_t npoints
Definition liblwgeom.h:427

References LWLINE::flags, FLAGS_NDIMS, LWDEBUGF, POINTARRAY::npoints, and LWLINE::points.

Referenced by gserialized1_from_any_size().

Here is the caller graph for this function: