1126 const int srid = 4326;
1127 const int segments_per_quad = 17;
1139 CU_ASSERT_DOUBLE_EQUAL(g->
xmin, x-r, 0.1);
1140 CU_ASSERT_DOUBLE_EQUAL(g->
xmax, x+r, 0.1);
1141 CU_ASSERT_DOUBLE_EQUAL(g->
ymin, y-r, 0.1);
1142 CU_ASSERT_DOUBLE_EQUAL(g->
ymax, y+r, 0.1);
1150 CU_ASSERT_TRUE(p == NULL);
1154 CU_ASSERT_TRUE(p == NULL);
1158 CU_ASSERT_TRUE(p != NULL);
int32_t lwgeom_get_srid(const LWGEOM *geom)
Return SRID number.
LWGEOM * lwpoly_as_lwgeom(const LWPOLY *obj)
void lwpoly_free(LWPOLY *poly)
#define LW_TRUE
Return types for functions with status returns.
#define ASSERT_INT_EQUAL(o, e)
const GBOX * lwgeom_get_bbox(const LWGEOM *lwgeom)
Get a non-empty geometry bounding box, computing and caching it if not already there.
double lwgeom_area(const LWGEOM *geom)
LWPOLY * lwpoly_construct_circle(int srid, double x, double y, double radius, uint32_t segments_per_quarter, char exterior)
int lwgeom_count_vertices(const LWGEOM *geom)
Count the total number of vertices in any LWGEOM.