1665{
1668 const int32_t srid = 4326;
1669 const uint32_t segments_per_quad = 17;
1673
1674
1676
1679
1681 CU_ASSERT_DOUBLE_EQUAL(g->
xmin, x-
r, 0.1);
1682 CU_ASSERT_DOUBLE_EQUAL(g->
xmax, x+
r, 0.1);
1683 CU_ASSERT_DOUBLE_EQUAL(g->
ymin, y-
r, 0.1);
1684 CU_ASSERT_DOUBLE_EQUAL(g->
ymax, y+
r, 0.1);
1685
1687
1689
1690
1692 CU_ASSERT_TRUE(p == NULL);
1693
1694
1696 CU_ASSERT_TRUE(p == NULL);
1697
1698
1700 CU_ASSERT_TRUE(p != NULL);
1702}
#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)