Definition at line 19 of file cu_node.c.
References cu_error_msg_reset(), LW_PARSER_CHECK_NONE, lwfree(), lwgeom_free(), lwgeom_from_wkt(), lwgeom_node(), lwgeom_same(), lwgeom_to_ewkt(), and node_suite_setup().
Referenced by node_suite_setup().
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))",
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an alloced string.
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
#define LW_PARSER_CHECK_NONE
LWGEOM * lwgeom_node(const LWGEOM *lwgeom_in)
void cu_error_msg_reset()
char lwgeom_same(const LWGEOM *lwgeom1, const LWGEOM *lwgeom2)
geom1 same as geom2 iff