PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gserialized1_from_lwline_size()

static size_t gserialized1_from_lwline_size ( const LWLINE line)
static

Definition at line 601 of file gserialized1.c.

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

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: