Definition at line 67 of file liblwgeom/cunit/cu_misc.c.
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)
#define LW_PARSER_CHECK_NONE
uint32_t lwgeom_count_vertices(const LWGEOM *geom)
Count the total number of vertices in any LWGEOM.
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
References genraster::count, LW_PARSER_CHECK_NONE, lwgeom_count_vertices(), lwgeom_free(), and lwgeom_from_wkt().
Referenced by misc_suite_setup().