1377 const int srid = 4326;
1378 const uint32_t segments_per_quad = 17;
1390 CU_ASSERT_DOUBLE_EQUAL(g->
xmin,
x-
r, 0.1);
1391 CU_ASSERT_DOUBLE_EQUAL(g->
xmax,
x+
r, 0.1);
1392 CU_ASSERT_DOUBLE_EQUAL(g->
ymin,
y-
r, 0.1);
1393 CU_ASSERT_DOUBLE_EQUAL(g->
ymax,
y+
r, 0.1);
1401 CU_ASSERT_TRUE(p == NULL);
1405 CU_ASSERT_TRUE(p == NULL);
1409 CU_ASSERT_TRUE(p != NULL);
#define ASSERT_INT_EQUAL(o, e)
int32_t lwgeom_get_srid(const LWGEOM *geom)
Return SRID number.
LWGEOM * lwpoly_as_lwgeom(const LWPOLY *obj)
LWPOLY * lwpoly_construct_circle(int 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.
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.