977 char *in_ewkt, *out_ewkt;
981 in_ewkt =
"COMPOUNDCURVE((0 0,10 0))";
983 if (strcmp(in_ewkt, out_ewkt))
984 fprintf(stderr,
"\nExp: %s\nObt: %s\n", in_ewkt, out_ewkt);
985 CU_ASSERT_STRING_EQUAL(in_ewkt, out_ewkt);
992 in_ewkt =
"MULTICURVE((0 0,10 0))";
994 if (strcmp(in_ewkt, out_ewkt))
995 fprintf(stderr,
"\nExp: %s\nObt: %s\n", in_ewkt, out_ewkt);
996 CU_ASSERT_STRING_EQUAL(in_ewkt, out_ewkt);
1003 in_ewkt =
"CURVEPOLYGON((0 0,10 0,10 10,0 10,0 0))";
1005 if (strcmp(in_ewkt, out_ewkt))
1006 fprintf(stderr,
"\nExp: %s\nObt: %s\n", in_ewkt, out_ewkt);
1007 CU_ASSERT_STRING_EQUAL(in_ewkt, out_ewkt);
1014 in_ewkt =
"MULTISURFACE(((0 0,10 0,10 10,0 10,0 0)))";
1016 if (strcmp(in_ewkt, out_ewkt))
1017 fprintf(stderr,
"\nExp: %s\nObt: %s\n", in_ewkt, out_ewkt);
1018 CU_ASSERT_STRING_EQUAL(in_ewkt, out_ewkt);
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an alloced string.
LWGEOM * lwgeom_as_curve(const LWGEOM *lwgeom)
Create a new LWGEOM of the appropriate CURVE* type.
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)