Definition at line 1083 of file cu_algorithm.c.
References LW_PARSER_CHECK_NONE, lwgeom_free(), lwgeom_from_wkt(), lwgeom_to_points(), lwmpoint_free(), and LWMPOINT::ngeoms.
Referenced by algorithms_suite_setup().
1092 CU_ASSERT_EQUAL(mpt->
ngeoms,100);
1099 CU_ASSERT_EQUAL(mpt->
ngeoms,1);
1103 CU_ASSERT_EQUAL(mpt, NULL);
1109 geom =
lwgeom_from_wkt(
"MULTIPOLYGON(((10 0,0 10,10 20,20 10,10 0)),((0 0,5 0,5 5,0 5,0 0)))",
LW_PARSER_CHECK_NONE);
1112 CU_ASSERT_EQUAL(mpt->
ngeoms,1000);
1116 CU_ASSERT_EQUAL(mpt->
ngeoms,1);
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
#define LW_PARSER_CHECK_NONE
void lwmpoint_free(LWMPOINT *mpt)
LWMPOINT * lwgeom_to_points(const LWGEOM *lwgeom, int npoints)