PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ gserialized1_from_lwcollection_size()

static size_t gserialized1_from_lwcollection_size ( const LWCOLLECTION col)
static

Definition at line 666 of file gserialized1.c.

667 {
668  size_t size = 4; /* Type number. */
669  uint32_t i = 0;
670 
671  assert(col);
672 
673  size += 4; /* Number of sub-geometries (zero => empty). */
674 
675  for ( i = 0; i < col->ngeoms; i++ )
676  {
677  size_t subsize = gserialized1_from_any_size(col->geoms[i]);
678  size += subsize;
679  LWDEBUGF(3, "lwcollection subgeom(%d) size = %d", i, subsize);
680  }
681 
682  LWDEBUGF(3, "lwcollection size = %d", size);
683 
684  return size;
685 }
static size_t gserialized1_from_any_size(const LWGEOM *geom)
Definition: gserialized1.c:687
#define LWDEBUGF(level, msg,...)
Definition: lwgeom_log.h:88
uint32_t ngeoms
Definition: liblwgeom.h:580
LWGEOM ** geoms
Definition: liblwgeom.h:575

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

Referenced by gserialized1_from_any_size().

Here is the call graph for this function:
Here is the caller graph for this function: