671 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((0 1.5,0 2,0 2.5))");
680 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);
686 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((1 3.5,1 4),(0 3.5,0 4))");
695 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);
701 CU_ASSERT_STRING_EQUAL(ewkt,
"GEOMETRYCOLLECTION(POINT(1 0),LINESTRING(0 0,0 1,0 2,0 2.5))");
716 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))");
724 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))");
732 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((3 3 3 3,4 4 4 4,3 3 3 5))");
740 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((2 2 2 2,3 3 3 3),(3 3 3 5,2 2 2 6))");
#define LW_PARSER_CHECK_NONE
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an alloced string.
void lwcollection_free(LWCOLLECTION *col)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
void lwmline_free(LWMLINE *mline)
void lwline_free(LWLINE *line)
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.
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.