13 #include "CUnit/Basic.h"
28 wkt =
"LINESTRING(0 0,5 5, 10 0)";
35 wkt =
"MULTILINESTRING((0 0,0 5),(10 0, -10 5))";
39 CU_ASSERT_STRING_EQUAL(
"MULTILINESTRING((0 2.5,-10 5),(0 0,0 2.5),(0 2.5,0 5),(10 0,0 2.5))", tmp)
42 wkt =
"MULTILINESTRING((0 0,5 5,10 0, 11 0, 20 0),(10 0, 12 0, 22 0))";
47 CU_ASSERT_STRING_EQUAL(
"MULTILINESTRING((0 0,5 5,10 0),(10 0,11 0,12 0,20 0),(20 0,22 0))", tmp);
50 wkt =
"MULTILINESTRING((0 0,5 5,10 0, 11 0, 20 0),(22 0, 12 0, 10 0),(0 5, 5 0))";
55 CU_ASSERT_STRING_EQUAL(
56 "MULTILINESTRING((0 0,2.5 2.5),(0 5,2.5 2.5),(2.5 2.5,5 5,10 0),(10 0,11 0,12 0,20 0),(20 0,22 0),(2.5 2.5,5 0))",
67 CU_pSuite suite = CU_add_suite(
"noding", NULL, NULL);
static void test_lwgeom_node(void)
void node_suite_setup(void)
void cu_error_msg_reset()
#define PG_ADD_TEST(suite, testfunc)
char lwgeom_same(const LWGEOM *lwgeom1, const LWGEOM *lwgeom2)
geom1 same as geom2 iff
LWGEOM * lwgeom_node(const LWGEOM *lwgeom_in)
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an alloced string.
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
This library is the generic geometry handling section of PostGIS.