PostGIS  2.5.0dev-r@@SVN_REVISION@@
lwcollection.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "liblwgeom_internal.h"
#include "lwgeom_log.h"
Include dependency graph for lwcollection.c:

Go to the source code of this file.


#define CHECK_LWGEOM_ZM   1


void lwcollection_release (LWCOLLECTION *lwcollection)
LWCOLLECTIONlwcollection_construct (uint8_t type, int srid, GBOX *bbox, uint32_t ngeoms, LWGEOM **geoms)
LWCOLLECTIONlwcollection_construct_empty (uint8_t type, int srid, char hasz, char hasm)
LWGEOMlwcollection_getsubgeom (LWCOLLECTION *col, int gnum)
LWCOLLECTIONlwcollection_clone (const LWCOLLECTION *g)
 Clone LWCOLLECTION object. More...
LWCOLLECTIONlwcollection_clone_deep (const LWCOLLECTION *g)
 Deep clone LWCOLLECTION object. More...
void lwcollection_reserve (LWCOLLECTION *col, uint32_t ngeoms)
 Ensure the collection can hold up at least ngeoms. More...
LWCOLLECTIONlwcollection_add_lwgeom (LWCOLLECTION *col, const LWGEOM *geom)
 Appends geom to the collection managed by col. More...
LWCOLLECTIONlwcollection_concat_in_place (LWCOLLECTION *col1, const LWCOLLECTION *col2)
 Appends all geometries from col2 to col1 in place. More...
LWCOLLECTIONlwcollection_segmentize2d (const LWCOLLECTION *col, double dist)
char lwcollection_same (const LWCOLLECTION *c1, const LWCOLLECTION *c2)
 check for same geometry composition More...
int lwcollection_ngeoms (const LWCOLLECTION *col)
void lwcollection_free (LWCOLLECTION *col)
LWCOLLECTIONlwcollection_extract (LWCOLLECTION *col, int type)
 Takes a potentially heterogeneous collection and returns a homogeneous collection consisting only of the specified type. More...
LWCOLLECTIONlwcollection_force_dims (const LWCOLLECTION *col, int hasz, int hasm)
int lwcollection_is_empty (const LWCOLLECTION *col)
uint32_t lwcollection_count_vertices (LWCOLLECTION *col)
int lwcollection_allows_subtype (int collectiontype, int subtype)
 Check if subtype is allowed in collectiontype. More...
int lwcollection_startpoint (const LWCOLLECTION *col, POINT4D *pt)