Definition at line 317 of file cu_ptarray.c.
325 CU_ASSERT_DOUBLE_EQUAL(
area, 1.0, 0.0000001);
331 CU_ASSERT_DOUBLE_EQUAL(
area, 4.0, 0.0000001);
338 CU_ASSERT_DOUBLE_EQUAL(
area, -4.0, 0.0000001);
static LWGEOM * lwgeom_from_text(const char *str)
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
void lwline_free(LWLINE *line)
double ptarray_signed_area(const POINTARRAY *pa)
Returns the area in cartesian units.
Datum area(PG_FUNCTION_ARGS)
References area(), lwgeom_as_lwline(), lwgeom_from_text(), lwline_free(), LWLINE::points, and ptarray_signed_area().
Referenced by ptarray_suite_setup().