560 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((0 1.5,0 2,0 2.5))");
568 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((0 3.5,0 4))");
576 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((0 0,0 1,0 2,0 2.5))" );
584 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((0 0,0 1,0 2,0 3,0 4))" );
592 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((0 1,0 2))" );
600 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((0 0,0 1,0 2))" );
608 CU_ASSERT_STRING_EQUAL(ewkt,
"GEOMETRYCOLLECTION(POINT(0 0))" );
616 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((2 2 2,1 1 1))" );
626 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((2 2 2,1 1 1))" );
636 CU_ASSERT_STRING_EQUAL(ewkt,
"GEOMETRYCOLLECTION(POINT(1 1 1))" );
646 CU_ASSERT_STRING_EQUAL(ewkt,
"GEOMETRYCOLLECTION(POINT(1 1 1))" );
#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 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.