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

Definition at line 407 of file g_serialized.c.

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

Referenced by gserialized_from_any_size().

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