Definition at line 21 of file liblwgeom/cunit/cu_misc.c.
References LW_PARSER_CHECK_NONE, lwfree(), lwgeom_force_2d(), lwgeom_free(), lwgeom_from_wkt(), and lwgeom_to_ewkt().
Referenced by misc_suite_setup().
30 CU_ASSERT_STRING_EQUAL(
"CIRCULARSTRING(-5 0,0 5,5 0,10 -5,15 0)",wkt_out);
35 geom =
lwgeom_from_wkt(
"GEOMETRYCOLLECTION(POINT(0 0 0),LINESTRING(1 1 1,2 2 2),POLYGON((0 0 1,0 1 1,1 1 1,1 0 1,0 0 1)),CURVEPOLYGON(CIRCULARSTRING(0 0 0,1 1 1,2 2 2,1 1 1,0 0 0)))",
LW_PARSER_CHECK_NONE);
38 CU_ASSERT_STRING_EQUAL(
"GEOMETRYCOLLECTION(POINT(0 0),LINESTRING(1 1,2 2),POLYGON((0 0,0 1,1 1,1 0,0 0)),CURVEPOLYGON(CIRCULARSTRING(0 0,1 1,2 2,1 1,0 0)))",wkt_out);
char * lwgeom_to_ewkt(const LWGEOM *lwgeom)
Return an alloced string.
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
#define LW_PARSER_CHECK_NONE
LWGEOM * lwgeom_force_2d(const LWGEOM *geom)
Strip out the Z/M components of an LWGEOM.