- Parameters
-
collection | input geometry collection |
tol | tolerance, semantic driven by tolerance_type |
tolerance_type | see LW_LINEARIZE_TOLERANCE_TYPE |
flags | see flags in lwarc_linearize |
- Returns
- a newly allocated LWCOLLECTION
Definition at line 692 of file lwstroke.c.
References CIRCSTRINGTYPE, COLLECTIONTYPE, COMPOUNDTYPE, CURVEPOLYTYPE, LWCOLLECTION::geoms, lwalloc(), lwcircstring_linearize(), lwcollection_construct(), lwcompound_linearize(), lwcurvepoly_linearize(), LWDEBUG, lwgeom_clone(), MULTICURVETYPE, MULTISURFACETYPE, LWCOLLECTION::ngeoms, LWCOLLECTION::srid, ovdump::type, and LWGEOM::type.
Referenced by lwcurve_linearize().
701 LWDEBUG(2,
"lwcollection_linearize called.");
705 for (i=0; i<collection->
ngeoms; i++)
707 tmp = collection->
geoms[i];
LWCOLLECTION * lwcollection_construct(uint8_t type, int srid, GBOX *bbox, uint32_t ngeoms, LWGEOM **geoms)
static LWLINE * lwcompound_linearize(const LWCOMPOUND *icompound, double tol, LW_LINEARIZE_TOLERANCE_TYPE tolerance_type, int flags)
static LWPOLY * lwcurvepoly_linearize(const LWCURVEPOLY *curvepoly, double tol, LW_LINEARIZE_TOLERANCE_TYPE tolerance_type, int flags)
#define LWDEBUG(level, msg)
static LWLINE * lwcircstring_linearize(const LWCIRCSTRING *icurve, double tol, LW_LINEARIZE_TOLERANCE_TYPE tolerance_type, int flags)
LWGEOM * lwgeom_clone(const LWGEOM *lwgeom)
Clone LWGEOM object.
static LWCOLLECTION * lwcollection_linearize(const LWCOLLECTION *collection, double tol, LW_LINEARIZE_TOLERANCE_TYPE type, int flags)
void * lwalloc(size_t size)