14 #include "CUnit/Basic.h" 21 #if POSTGIS_GEOS_VERSION >= 34 38 exp_wkt =
"GEOMETRYCOLLECTION(POLYGON((5 5,20 0,10 0,5 5)))";
39 if ( strcmp(wkt, exp_wkt) )
41 fprintf(stderr,
"\nExp: %s\nObt: %s\n", exp_wkt, wkt);
43 CU_ASSERT_STRING_EQUAL(wkt, exp_wkt);
51 #if POSTGIS_GEOS_VERSION >= 35 70 #if POSTGIS_GEOS_VERSION >= 35 78 CU_ASSERT_TRUE(
gbox_same(clipping_extent, output_extent));
100 #if POSTGIS_GEOS_VERSION >= 35 116 CU_pSuite suite = CU_add_suite(
"triangulate", NULL, NULL);
int lwgeom_is_collection(const LWGEOM *lwgeom)
Determine whether a LWGEOM can contain sub-geometries or not.
static void assert_empty_diagram(char *wkt, double tolerance)
uint32_t lwgeom_get_type(const LWGEOM *geom)
Return LWTYPE number.
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an alloced string.
void lwgeom_free(LWGEOM *geom)
static void test_lwgeom_voronoi_diagram(void)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
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.
#define LW_PARSER_CHECK_NONE
void cu_error_msg_reset()
LWGEOM * lwgeom_delaunay_triangulation(const LWGEOM *geom, double tolerance, int edgeOnly)
Take vertices of a geometry and build a delaunay triangulation on them.
#define PG_ADD_TEST(suite, testfunc)
const GBOX * lwgeom_get_bbox(const LWGEOM *lwgeom)
Get a non-empty geometry bounding box, computing and caching it if not already there.
LWGEOM * lwgeom_normalize(const LWGEOM *geom)
static void test_lwgeom_delaunay_triangulation(void)
static void test_lwgeom_voronoi_diagram_custom_envelope(void)
static void test_lwgeom_voronoi_diagram_expected_empty(void)
int gbox_same(const GBOX *g1, const GBOX *g2)
Check if 2 given Gbox are the same.
void triangulate_suite_setup(void)