PostGIS 3.0.6dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ gserialized1_from_lwcircstring_size()

static size_t gserialized1_from_lwcircstring_size ( const LWCIRCSTRING curve)
static

Definition at line 651 of file gserialized1.c.

652{
653 size_t size = 4; /* Type number. */
654
655 assert(curve);
656
657 size += 4; /* Number of points (zero => empty). */
658 size += curve->points->npoints * FLAGS_NDIMS(curve->flags) * sizeof(double);
659
660 LWDEBUGF(3, "circstring size = %d", size);
661
662 return size;
663}
#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 gserialized1_from_any_size().

Here is the caller graph for this function: