Add a component, allocating extra space if necessary.
The compoundcurve takes ownership of the passed geometry.
Definition at line 131 of file lwcompound.c.
132{
134
135
137 {
138 LWDEBUG(4,
"Got an empty component for a compound curve!");
140 }
141
143 {
145
147
149
152
154 {
155 LWDEBUG(4,
"Components don't join up end-to-end!");
156 LWDEBUGF(4,
"first pt (%g %g %g %g) last pt (%g %g %g %g)", first.
x, first.
y, first.
z, first.
m, last.
x, last.
y, last.
z, last.
m);
158 }
159 }
160
163}
int getPoint4d_p(const POINTARRAY *pa, uint32_t n, POINT4D *point)
LWCOLLECTION * lwcollection_add_lwgeom(LWCOLLECTION *col, const LWGEOM *geom)
Appends geom to the collection managed by col.
#define LWDEBUG(level, msg)
#define LWDEBUGF(level, msg,...)
static int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
References FP_EQUALS, LWCOLLECTION::geoms, getPoint4d_p(), LW_FAILURE, LW_SUCCESS, lwcollection_add_lwgeom(), LWDEBUG, LWDEBUGF, lwgeom_is_empty(), POINT4D::m, LWCOLLECTION::ngeoms, POINTARRAY::npoints, LWLINE::points, POINT4D::x, POINT4D::y, and POINT4D::z.
Referenced by lwcompound_construct_from_lwline(), and wkt_parser_compound_add_geom().