PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwcollection_concat_in_place()

LWCOLLECTION * lwcollection_concat_in_place ( LWCOLLECTION col1,
const LWCOLLECTION col2 
)
extern

Appends all geometries from col2 to col1 in place.

Caller is responsible to release col2.

Definition at line 241 of file lwcollection.c.

242{
243 uint32_t i;
244 if (!col1 || !col2) return NULL;
245 for (i = 0; i < col2->ngeoms; i++)
246 col1 = lwcollection_add_lwgeom(col1, col2->geoms[i]);
247 return col1;
248}
LWCOLLECTION * lwcollection_add_lwgeom(LWCOLLECTION *col, const LWGEOM *geom)
Appends geom to the collection managed by col.
uint32_t ngeoms
Definition liblwgeom.h:580
LWGEOM ** geoms
Definition liblwgeom.h:575

References LWCOLLECTION::geoms, lwcollection_add_lwgeom(), and LWCOLLECTION::ngeoms.

Referenced by lwcollection_clip_to_ordinate_range(), and lwcollection_offsetcurve().

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