PostGIS  2.1.10dev-r@@SVN_REVISION@@
static size_t gserialized_from_lwcircstring_size ( const LWCIRCSTRING curve)
static

Definition at line 471 of file g_serialized.c.

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

Referenced by gserialized_from_any_size().

472 {
473  size_t size = 4; /* Type number. */
474 
475  assert(curve);
476 
477  size += 4; /* Number of points (zero => empty). */
478  size += curve->points->npoints * FLAGS_NDIMS(curve->flags) * sizeof(double);
479 
480  LWDEBUGF(3, "circstring size = %d", size);
481 
482  return size;
483 }
uint8_t flags
Definition: liblwgeom.h:397
int npoints
Definition: liblwgeom.h:327
POINTARRAY * points
Definition: liblwgeom.h:400
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:55
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:118

Here is the caller graph for this function: