PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ gserialized2_from_lwcircstring_size()

static size_t gserialized2_from_lwcircstring_size ( const LWCIRCSTRING curve)
static

Definition at line 704 of file gserialized2.c.

705 {
706  size_t size = 4; /* Type number. */
707 
708  assert(curve);
709 
710  size += 4; /* Number of points (zero => empty). */
711  size += curve->points->npoints * FLAGS_NDIMS(curve->flags) * sizeof(double);
712 
713  LWDEBUGF(3, "circstring size = %d", size);
714 
715  return size;
716 }
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:193
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:88
lwflags_t flags
Definition: liblwgeom.h:495
POINTARRAY * points
Definition: liblwgeom.h:493
uint32_t npoints
Definition: liblwgeom.h:413

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

Referenced by gserialized2_from_any_size().

Here is the caller graph for this function: