Definition at line 20 of file cu_split.c.
31 CU_ASSERT_EQUAL(coll->
ngeoms, 0);
35 CU_ASSERT(line != NULL);
41 CU_ASSERT_EQUAL(ret, 1);
42 CU_ASSERT_EQUAL(coll->
ngeoms, 0);
49 CU_ASSERT_EQUAL(ret, 1);
50 CU_ASSERT_EQUAL(coll->
ngeoms, 0);
57 CU_ASSERT_EQUAL(ret, 0);
58 CU_ASSERT_EQUAL(coll->
ngeoms, 0);
65 CU_ASSERT_EQUAL(ret, 2);
66 CU_ASSERT_EQUAL(coll->
ngeoms, 2);
73 CU_ASSERT_EQUAL(ret, 2);
74 CU_ASSERT_EQUAL(coll->
ngeoms, 4);
81 CU_ASSERT(line != NULL);
84 CU_ASSERT(point != NULL);
86 CU_ASSERT_EQUAL(ret, 0);
void cu_error_msg_reset()
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
void lwpoint_free(LWPOINT *pt)
#define LW_PARSER_CHECK_NONE
LWMLINE * lwmline_construct_empty(int srid, char hasz, char hasm)
LWPOINT * lwgeom_as_lwpoint(const LWGEOM *lwgeom)
void lwcollection_free(LWCOLLECTION *col)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
#define SRID_UNKNOWN
Unknown SRID value.
void lwline_free(LWLINE *line)
int lwline_split_by_point_to(const LWLINE *ln, const LWPOINT *pt, LWMLINE *to)
Split a line by a point and push components to the provided multiline.
References cu_error_msg_reset(), LW_PARSER_CHECK_NONE, lwcollection_free(), lwgeom_as_lwline(), lwgeom_as_lwpoint(), lwgeom_from_wkt(), lwline_free(), lwline_split_by_point_to(), lwmline_construct_empty(), lwpoint_free(), LWMLINE::ngeoms, and SRID_UNKNOWN.
Referenced by split_suite_setup().