PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ gserialized_from_lwpoint_size()

static size_t gserialized_from_lwpoint_size ( const LWPOINT point)
static

Definition at line 674 of file g_serialized.c.

675 {
676  size_t size = 4; /* Type number. */
677 
678  assert(point);
679 
680  size += 4; /* Number of points (one or zero (empty)). */
681  size += point->point->npoints * FLAGS_NDIMS(point->flags) * sizeof(double);
682 
683  LWDEBUGF(3, "point size = %d", size);
684 
685  return size;
686 }
#define FLAGS_NDIMS(flags)
Definition: liblwgeom.h:152
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:88
POINTARRAY * point
Definition: liblwgeom.h:414
uint8_t flags
Definition: liblwgeom.h:411
uint32_t npoints
Definition: liblwgeom.h:374

References LWPOINT::flags, FLAGS_NDIMS, LWDEBUGF, POINTARRAY::npoints, and LWPOINT::point.

Referenced by gserialized_from_any_size().

Here is the caller graph for this function: