PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ gserialized_from_lwline_size()

static size_t gserialized_from_lwline_size ( const LWLINE line)
static

Definition at line 688 of file g_serialized.c.

689 {
690  size_t size = 4; /* Type number. */
691 
692  assert(line);
693 
694  size += 4; /* Number of points (zero => empty). */
695  size += line->points->npoints * FLAGS_NDIMS(line->flags) * sizeof(double);
696 
697  LWDEBUGF(3, "linestring size = %d", size);
698 
699  return size;
700 }
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:152
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:88
uint8_t flags
Definition: liblwgeom.h:422
POINTARRAY * points
Definition: liblwgeom.h:425
uint32_t npoints
Definition: liblwgeom.h:374

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

Referenced by gserialized_from_any_size().

Here is the caller graph for this function: