954{
957 char *in_ewkt, *out_ewkt;
958
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);
969
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);
980
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);
991
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);
1002
1003}
#define ASSERT_STRING_EQUAL(o, e)
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
LWGEOM * lwgeom_as_curve(const LWGEOM *lwgeom)
Create a new LWGEOM of the appropriate CURVE* type.
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an allocated string.
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)