PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ gserialized1_from_lwcircstring_size()

static size_t gserialized1_from_lwcircstring_size ( const LWCIRCSTRING curve)
static

Definition at line 652 of file gserialized1.c.

653 {
654  size_t size = 4; /* Type number. */
655 
656  assert(curve);
657 
658  size += 4; /* Number of points (zero => empty). */
659  size += curve->points->npoints * FLAGS_NDIMS(curve->flags) * sizeof(double);
660 
661  LWDEBUGF(3, "circstring size = %d", size);
662 
663  return size;
664 }
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:179
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:88
lwflags_t flags
Definition: liblwgeom.h:509
POINTARRAY * points
Definition: liblwgeom.h:507
uint32_t npoints
Definition: liblwgeom.h:427

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

Referenced by gserialized1_from_any_size().

Here is the caller graph for this function: