592 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((0 1.5,0 2,0 2.5))");
601 mline = (
LWMLINE*)
lwgeom_from_wkt(
"MULTILINESTRING((1 0,1 1,1 2,1 3,1 4), (0 0,0 1,0 2,0 3,0 4))",
LW_PARSER_CHECK_NONE);
607 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((1 3.5,1 4),(0 3.5,0 4))");
616 mline = (
LWMLINE*)
lwgeom_from_wkt(
"MULTILINESTRING((1 0,1 -1,1 -2,1 -3,1 -4), (0 0,0 1,0 2,0 3,0 4))",
LW_PARSER_CHECK_NONE);
622 CU_ASSERT_STRING_EQUAL(ewkt,
"GEOMETRYCOLLECTION(POINT(1 0),LINESTRING(0 0,0 1,0 2,0 2.5))");
637 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((3 3 3 3,3.5 3.5 3.5 3.5),(3.5 3.5 3.5 4.5,3 3 3 5))");
645 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((2 2 2 2,3 3 3 3,3.5 3.5 3.5 3.5),(3.5 3.5 3.5 4.5,3 3 3 5,2 2 2 6))");
653 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((3 3 3 3,4 4 4 4,3 3 3 5))");
661 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((2 2 2 2,3 3 3 3),(3 3 3 5,2 2 2 6))");
void lwmline_free(LWMLINE *mline)
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an alloced string.
void lwline_free(LWLINE *line)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
LWCOLLECTION * lwline_clip_to_ordinate_range(const LWLINE *line, char ordinate, double from, double to)
Clip a line based on the from/to range of one of its ordinates.
#define LW_PARSER_CHECK_NONE
LWCOLLECTION * lwmline_clip_to_ordinate_range(const LWMLINE *mline, char ordinate, double from, double to)
Clip a multi-line based on the from/to range of one of its ordinates.
void lwcollection_free(LWCOLLECTION *col)