PostGIS  2.2.7dev-r@@SVN_REVISION@@
static size_t gserialized_from_lwpoint_size ( const LWPOINT point)
static

Definition at line 405 of file g_serialized.c.

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

Referenced by gserialized_from_any_size().

406 {
407  size_t size = 4; /* Type number. */
408 
409  assert(point);
410 
411  size += 4; /* Number of points (one or zero (empty)). */
412  size += point->point->npoints * FLAGS_NDIMS(point->flags) * sizeof(double);
413 
414  LWDEBUGF(3, "point size = %d", size);
415 
416  return size;
417 }
int npoints
Definition: liblwgeom.h:355
POINTARRAY * point
Definition: liblwgeom.h:395
uint8_t flags
Definition: liblwgeom.h:392
#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: