1581 CU_ASSERT_EQUAL(mpt->
ngeoms,100);
1586 for (i = 0; i < 100; i++)
1593 CU_ASSERT_EQUAL(eq, 0);
1605 for (i = 0; i < 1000; i++)
1612 CU_ASSERT_EQUAL(eq, 0);
1620 for (i = 0; i < 1000; i++)
1627 CU_ASSERT_EQUAL(eq, 1000);
1639 CU_ASSERT_DOUBLE_EQUAL(
lwpoint_get_x(pt), 0.801167838758, 1e-11);
1640 CU_ASSERT_DOUBLE_EQUAL(
lwpoint_get_y(pt), 0.345281131175, 1e-11);
1645 CU_ASSERT_EQUAL(mpt, NULL);
1651 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);
1654 CU_ASSERT_EQUAL(mpt->
ngeoms,1000);
1658 CU_ASSERT_EQUAL(mpt->
ngeoms,1);
void lwmpoint_free(LWMPOINT *mpt)
void lwgeom_free(LWGEOM *geom)
#define LW_PARSER_CHECK_NONE
double lwpoint_get_x(const LWPOINT *point)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
LWMPOINT * lwgeom_to_points(const LWGEOM *lwgeom, uint32_t npoints, int32_t seed)
double lwpoint_get_y(const LWPOINT *point)