957 char *in_ewkt, *out_ewkt;
961 in_ewkt =
"COMPOUNDCURVE((0 0,10 0))";
963 if (strcmp(in_ewkt, out_ewkt))
964 fprintf(stderr,
"\nExp: %s\nObt: %s\n", in_ewkt, out_ewkt);
965 CU_ASSERT_STRING_EQUAL(in_ewkt, out_ewkt);
972 in_ewkt =
"MULTICURVE((0 0,10 0))";
974 if (strcmp(in_ewkt, out_ewkt))
975 fprintf(stderr,
"\nExp: %s\nObt: %s\n", in_ewkt, out_ewkt);
976 CU_ASSERT_STRING_EQUAL(in_ewkt, out_ewkt);
983 in_ewkt =
"CURVEPOLYGON((0 0,10 0,10 10,0 10,0 0))";
985 if (strcmp(in_ewkt, out_ewkt))
986 fprintf(stderr,
"\nExp: %s\nObt: %s\n", in_ewkt, out_ewkt);
987 CU_ASSERT_STRING_EQUAL(in_ewkt, out_ewkt);
994 in_ewkt =
"MULTISURFACE(((0 0,10 0,10 10,0 10,0 0)))";
996 if (strcmp(in_ewkt, out_ewkt))
997 fprintf(stderr,
"\nExp: %s\nObt: %s\n", in_ewkt, out_ewkt);
998 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)