PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ gserialized_from_lwcircstring_size()

static size_t gserialized_from_lwcircstring_size ( const LWCIRCSTRING curve)
static

Definition at line 469 of file g_serialized.c.

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

Referenced by gserialized_from_any_size().

470 {
471  size_t size = 4; /* Type number. */
472 
473  assert(curve);
474 
475  size += 4; /* Number of points (zero => empty). */
476  size += curve->points->npoints * FLAGS_NDIMS(curve->flags) * sizeof(double);
477 
478  LWDEBUGF(3, "circstring size = %d", size);
479 
480  return size;
481 }
uint8_t flags
Definition: liblwgeom.h:425
int npoints
Definition: liblwgeom.h:355
POINTARRAY * points
Definition: liblwgeom.h:428
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:55
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:136
Here is the caller graph for this function: