PostGIS  2.1.10dev-r@@SVN_REVISION@@
static size_t gserialized_from_lwcollection_size ( const LWCOLLECTION col)
static

Definition at line 485 of file g_serialized.c.

References LWCOLLECTION::geoms, gserialized_from_any_size(), LWDEBUGF, and LWCOLLECTION::ngeoms.

Referenced by gserialized_from_any_size().

486 {
487  size_t size = 4; /* Type number. */
488  int i = 0;
489 
490  assert(col);
491 
492  size += 4; /* Number of sub-geometries (zero => empty). */
493 
494  for ( i = 0; i < col->ngeoms; i++ )
495  {
496  size_t subsize = gserialized_from_any_size(col->geoms[i]);
497  size += subsize;
498  LWDEBUGF(3, "lwcollection subgeom(%d) size = %d", i, subsize);
499  }
500 
501  LWDEBUGF(3, "lwcollection size = %d", size);
502 
503  return size;
504 }
LWGEOM ** geoms
Definition: liblwgeom.h:465
static size_t gserialized_from_any_size(const LWGEOM *geom)
Definition: g_serialized.c:506
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:55

Here is the call graph for this function:

Here is the caller graph for this function: