961 char *in_ewkt, *out_ewkt;
965 in_ewkt =
"COMPOUNDCURVE((0 0,10 0))";
967 if (strcmp(in_ewkt, out_ewkt))
968 fprintf(stderr,
"\nExp: %s\nObt: %s\n", in_ewkt, out_ewkt);
976 in_ewkt =
"MULTICURVE((0 0,10 0))";
978 if (strcmp(in_ewkt, out_ewkt))
979 fprintf(stderr,
"\nExp: %s\nObt: %s\n", in_ewkt, out_ewkt);
987 in_ewkt =
"CURVEPOLYGON((0 0,10 0,10 10,0 10,0 0))";
989 if (strcmp(in_ewkt, out_ewkt))
990 fprintf(stderr,
"\nExp: %s\nObt: %s\n", in_ewkt, out_ewkt);
998 in_ewkt =
"MULTISURFACE(((0 0,10 0,10 10,0 10,0 0)))";
1000 if (strcmp(in_ewkt, out_ewkt))
1001 fprintf(stderr,
"\nExp: %s\nObt: %s\n", in_ewkt, out_ewkt);
#define ASSERT_STRING_EQUAL(o, e)
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an allocated 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)