1668 const int32_t srid = 4326;
1669 const uint32_t segments_per_quad = 17;
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);
1692 CU_ASSERT_TRUE(p == NULL);
1696 CU_ASSERT_TRUE(p == NULL);
1700 CU_ASSERT_TRUE(p != NULL);
#define ASSERT_INT_EQUAL(o, e)
LWPOLY * lwpoly_construct_circle(int32_t srid, double x, double y, double radius, uint32_t segments_per_quarter, char exterior)
int32_t lwgeom_get_srid(const LWGEOM *geom)
Return SRID number.
LWGEOM * lwpoly_as_lwgeom(const LWPOLY *obj)
double lwgeom_area(const LWGEOM *geom)
uint32_t lwgeom_count_vertices(const LWGEOM *geom)
Count the total number of vertices in any LWGEOM.
const GBOX * lwgeom_get_bbox(const LWGEOM *lwgeom)
Get a non-empty geometry bounding box, computing and caching it if not already there.
void lwpoly_free(LWPOLY *poly)
#define LW_TRUE
Return types for functions with status returns.