481 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((0 1.5,0 2,0 2.5))");
489 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((0 3.5,0 4))");
497 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((0 0,0 1,0 2,0 2.5))" );
505 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((0 0,0 1,0 2,0 3,0 4))" );
513 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((0 1,0 2))" );
521 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((0 0,0 1,0 2))" );
529 CU_ASSERT_STRING_EQUAL(ewkt,
"GEOMETRYCOLLECTION(POINT(0 0))" );
537 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((2 2 2,1 1 1))" );
547 CU_ASSERT_STRING_EQUAL(ewkt,
"MULTILINESTRING((2 2 2,1 1 1))" );
557 CU_ASSERT_STRING_EQUAL(ewkt,
"GEOMETRYCOLLECTION(POINT(1 1 1))" );
567 CU_ASSERT_STRING_EQUAL(ewkt,
"GEOMETRYCOLLECTION(POINT(1 1 1))" );
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
void lwcollection_free(LWCOLLECTION *col)