PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void test_misc_area ( void  )
static

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

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

Referenced by misc_suite_setup().

101 {
102  LWGEOM *geom;
103  double area;
104 
105  geom = lwgeom_from_wkt("LINESTRING EMPTY", LW_PARSER_CHECK_ALL);
106  area = lwgeom_area(geom);
107  CU_ASSERT_DOUBLE_EQUAL(area, 0.0, 0.0001);
108  lwgeom_free(geom);
109 }
Datum area(PG_FUNCTION_ARGS)
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1006
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:844
double lwgeom_area(const LWGEOM *geom)
Definition: lwgeom.c:1499
#define LW_PARSER_CHECK_ALL
Definition: liblwgeom.h:1707

Here is the call graph for this function:

Here is the caller graph for this function: