1689{
1692 const int32_t srid = 4326;
1693 const uint32_t segments_per_quad = 17;
1697
1698
1700
1703
1705 CU_ASSERT_DOUBLE_EQUAL(g->
xmin, x-
r, 0.1);
1706 CU_ASSERT_DOUBLE_EQUAL(g->
xmax, x+
r, 0.1);
1707 CU_ASSERT_DOUBLE_EQUAL(g->
ymin, y-
r, 0.1);
1708 CU_ASSERT_DOUBLE_EQUAL(g->
ymax, y+
r, 0.1);
1709
1711
1713
1714
1716 CU_ASSERT_TRUE(p == NULL);
1717
1718
1720 CU_ASSERT_TRUE(p == NULL);
1721
1722
1724 CU_ASSERT_TRUE(p != NULL);
1726}
#define ASSERT_INT_EQUAL(o, e)
int32_t lwgeom_get_srid(const LWGEOM *geom)
Return SRID number.
LWPOLY * lwpoly_construct_circle(int32_t srid, double x, double y, double radius, uint32_t segments_per_quarter, char exterior)
double lwgeom_area(const LWGEOM *geom)
uint32_t lwgeom_count_vertices(const LWGEOM *geom)
Count the total number of vertices in any LWGEOM.
void lwpoly_free(LWPOLY *poly)
#define LW_TRUE
Return types for functions with status returns.
const GBOX * lwgeom_get_bbox(const LWGEOM *lwgeom)
Get a non-empty geometry bounding box, computing and caching it if not already there.
LWGEOM * lwpoly_as_lwgeom(const LWPOLY *obj)