PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ assert_empty_diagram()

static void assert_empty_diagram ( char *  wkt,
double  tolerance 
)
static

Definition at line 82 of file cu_triangulate.c.

83 {
85  LWGEOM *out = lwgeom_voronoi_diagram(in, NULL, tolerance, 0);
86 
87  CU_ASSERT_TRUE(lwgeom_is_collection(out));
88  CU_ASSERT_EQUAL(COLLECTIONTYPE, lwgeom_get_type(out));
89 
90  lwgeom_free(in);
91  lwgeom_free(out);
92 }
#define COLLECTIONTYPE
Definition: liblwgeom.h:122
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1138
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2060
LWGEOM * lwgeom_voronoi_diagram(const LWGEOM *g, const GBOX *env, double tolerance, int output_edges)
Take vertices of a geometry and build the Voronoi diagram.
int lwgeom_is_collection(const LWGEOM *lwgeom)
Determine whether a LWGEOM can contain sub-geometries or not.
Definition: lwgeom.c:1079
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:905
static uint32_t lwgeom_get_type(const LWGEOM *geom)
Return LWTYPE number.
Definition: lwinline.h:135

References COLLECTIONTYPE, LW_PARSER_CHECK_NONE, lwgeom_free(), lwgeom_from_wkt(), lwgeom_get_type(), lwgeom_is_collection(), and lwgeom_voronoi_diagram().

Referenced by test_lwgeom_voronoi_diagram_expected_empty().

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