PostGIS  2.4.9dev-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, int 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_segmentize2d (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...
LWGEOMlwcollection_remove_repeated_points (const LWCOLLECTION *coll, double tolerance)
LWCOLLECTIONlwcollection_force_dims (const LWCOLLECTION *col, int hasz, int hasm)
int lwcollection_is_empty (const LWCOLLECTION *col)
int lwcollection_count_vertices (LWCOLLECTION *col)
LWCOLLECTIONlwcollection_simplify (const LWCOLLECTION *igeom, double dist, int preserve_collapsed)
int lwcollection_allows_subtype (int collectiontype, int subtype)
 Check if subtype is allowed in collectiontype. More...
int lwcollection_startpoint (const LWCOLLECTION *col, POINT4D *pt)
LWCOLLECTIONlwcollection_grid (const LWCOLLECTION *coll, const gridspec *grid)