Definition at line 75 of file liblwgeom/cunit/cu_misc.c.
80 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);
82 CU_ASSERT_EQUAL(
count,13);
87 CU_ASSERT_EQUAL(
count,9);
92 CU_ASSERT_EQUAL(
count,9);
98 CU_ASSERT_EQUAL(
count,4);
103 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().