Definition at line 117 of file lwhomogenize.c.
References HomogenizeBuffer::buf, buffer(), HomogenizeBuffer::cnt, COLLECTIONTYPE, LWCOLLECTION::flags, FLAGS_GET_M, FLAGS_GET_Z, LWCOLLECTION::geoms, init_homogenizebuffer(), lwcollection_add_lwgeom(), lwcollection_as_lwgeom(), lwcollection_build_buffer(), lwcollection_construct_empty(), lwcollection_free(), LWCOLLECTION::ngeoms, NUMTYPES, LWGEOM::srid, LWCOLLECTION::srid, and ovdump::type.
Referenced by lwgeom_homogenize().
133 if ( buffer.
cnt[i] > 0 )
148 else if ( ntypes == 1 )
152 if ( outcol->
ngeoms == 1 )
154 outgeom = outcol->
geoms[0];
164 else if ( ntypes > 1 )
static void init_homogenizebuffer(HomogenizeBuffer *buffer)
Datum buffer(PG_FUNCTION_ARGS)
LWCOLLECTION * buf[NUMTYPES]
#define FLAGS_GET_Z(flags)
Macros for manipulating the 'flags' byte.
#define FLAGS_GET_M(flags)
void lwcollection_free(LWCOLLECTION *col)
static void lwcollection_build_buffer(const LWCOLLECTION *col, HomogenizeBuffer *buffer)
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int srid, char hasz, char hasm)
LWCOLLECTION * lwcollection_add_lwgeom(LWCOLLECTION *col, const LWGEOM *geom)
Appends geom to the collection managed by col.
LWGEOM * lwcollection_as_lwgeom(const LWCOLLECTION *obj)