28 wkt =
"LINESTRING(0 0, 5 5, 10 0)";
33 CU_ASSERT_STRING_EQUAL(
"LINESTRING(5 5,10 0)", tmp)
36 wkt =
"LINESTRING EMPTY";
41 CU_ASSERT_STRING_EQUAL(wkt, tmp)
44 wkt =
"MULTIPOINT EMPTY";
49 CU_ASSERT_STRING_EQUAL(wkt, tmp)
52 wkt =
"MULTIPOINT(0 0, 6 6, 7 5)";
57 CU_ASSERT_STRING_EQUAL(
"MULTIPOINT(6 6,7 5)", tmp)
61 wkt =
"POLYGON((311017 4773762,311016 4773749,311006 4773744,310990 4773748,310980 4773758,310985 4773771,311003 4773776,311017 4773762))";
69 wkt =
"POLYGON((1410 2055, 1410 2056, 1410 2057, 1410 2055))";
72 CU_ASSERT_PTR_NULL(out);
void cu_error_msg_reset()
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an alloced string.
int lwgeom_is_empty(const LWGEOM *geom)
Return true or false depending on whether a geometry is an "empty" geometry (no vertices members)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
LWGEOM * lwgeom_clip_by_rect(const LWGEOM *geom1, double x0, double y0, double x1, double y1)