PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ assert_empty_diagram()

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

Definition at line 83 of file cu_triangulate.c.

84 {
86  LWGEOM *out = lwgeom_voronoi_diagram(in, NULL, tolerance, 0);
87 
88  CU_ASSERT_TRUE(lwgeom_is_collection(out));
89  CU_ASSERT_EQUAL(COLLECTIONTYPE, lwgeom_get_type(out));
90 
91  lwgeom_free(in);
92  lwgeom_free(out);
93 }
#define COLLECTIONTYPE
Definition: liblwgeom.h:108
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1155
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2114
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:1097
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:145

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: