Definition at line 19 of file cu_split.c.
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().
30 CU_ASSERT_EQUAL(coll->
ngeoms, 0);
34 CU_ASSERT(line != NULL);
40 CU_ASSERT_EQUAL(ret, 1);
41 CU_ASSERT_EQUAL(coll->
ngeoms, 0);
48 CU_ASSERT_EQUAL(ret, 1);
49 CU_ASSERT_EQUAL(coll->
ngeoms, 0);
56 CU_ASSERT_EQUAL(ret, 0);
57 CU_ASSERT_EQUAL(coll->
ngeoms, 0);
64 CU_ASSERT_EQUAL(ret, 2);
65 CU_ASSERT_EQUAL(coll->
ngeoms, 2);
72 CU_ASSERT_EQUAL(ret, 2);
73 CU_ASSERT_EQUAL(coll->
ngeoms, 4);
void lwpoint_free(LWPOINT *pt)
void lwline_free(LWLINE *line)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
LWPOINT * lwgeom_as_lwpoint(const LWGEOM *lwgeom)
LWMLINE * lwmline_construct_empty(int srid, char hasz, char hasm)
#define LW_PARSER_CHECK_NONE
void cu_error_msg_reset()
#define SRID_UNKNOWN
Unknown SRID value.
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
void lwcollection_free(LWCOLLECTION *col)
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.