72 geom =
lwgeom_from_wkt(
"GEOMETRYCOLLECTION(POINT(0 0),LINESTRING(0 0,1 1),POLYGON((0 0,0 1,1 0,0 0)),CIRCULARSTRING(0 0,0 1,1 1),CURVEPOLYGON(CIRCULARSTRING(0 0,0 1,1 1)))",
LW_PARSER_CHECK_NONE);
74 CU_ASSERT_EQUAL(count,13);
79 CU_ASSERT_EQUAL(count,9);
84 CU_ASSERT_EQUAL(count,9);
90 CU_ASSERT_EQUAL(count,4);
95 CU_ASSERT_EQUAL(count,9);
void lwgeom_free(LWGEOM *geom)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
#define LW_PARSER_CHECK_NONE
int lwgeom_count_vertices(const LWGEOM *geom)
Count the total number of vertices in any LWGEOM.