Add a component, allocating extra space if necessary.
The compoundcurve takes owership of the passed geometry.
Definition at line 88 of file lwcompound.c.
89{
91
92
94 {
95 LWDEBUG(4,
"Got an empty component for a compound curve!");
97 }
98
100 {
102
104
106
109
111 {
112 LWDEBUG(4,
"Components don't join up end-to-end!");
113 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);
115 }
116 }
117
120}
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().