PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ test_misc_area()

static void test_misc_area ( void  )
static

Definition at line 107 of file liblwgeom/cunit/cu_misc.c.

108 {
109  LWGEOM *geom;
110  double area;
111 
112  geom = lwgeom_from_wkt("LINESTRING EMPTY", LW_PARSER_CHECK_ALL);
113  area = lwgeom_area(geom);
114  CU_ASSERT_DOUBLE_EQUAL(area, 0.0, 0.0001);
115  lwgeom_free(geom);
116 }
#define LW_PARSER_CHECK_ALL
Definition: liblwgeom.h:2061
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1138
double lwgeom_area(const LWGEOM *geom)
Definition: lwgeom.c:1863
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:905

References LW_PARSER_CHECK_ALL, lwgeom_area(), lwgeom_free(), and lwgeom_from_wkt().

Referenced by misc_suite_setup().

Here is the call graph for this function:
Here is the caller graph for this function: