PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ buildarea1()

static void buildarea1 ( void  )
static

Definition at line 50 of file cu_buildarea.c.

51 {
52  LWGEOM *gin, *gout, *gexp;
53 
55 
56  gin = lwgeom_from_wkt(
57 "MULTILINESTRING((0 0, 10 0, 10 10, 0 10, 0 0),(10 10, 20 10, 20 20, 10 20, 10 10))",
59  CU_ASSERT( gin != NULL );
60 
61  gexp = lwgeom_from_wkt(
62 "MULTIPOLYGON(((0 0,0 10,10 10,10 0,0 0)),((10 10,10 20,20 20,20 10,10 10)))",
64  CU_ASSERT( gexp != NULL );
65 
66  gout = lwgeom_buildarea(gin);
67  CU_ASSERT(gout != NULL);
68 
69  check_geom_equal(gout, gexp);
70 
71  lwgeom_free(gout);
72  lwgeom_free(gexp);
73  lwgeom_free(gin);
74 }
#define check_geom_equal(gobt, gexp)
Definition: cu_buildarea.c:23
void cu_error_msg_reset()
void lwgeom_free(LWGEOM *geom)
Definition: lwgeom.c:1144
#define LW_PARSER_CHECK_NONE
Definition: liblwgeom.h:2005
LWGEOM * lwgeom_buildarea(const LWGEOM *geom)
Take a geometry and return an areal geometry (Polygon or MultiPolygon).
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
Definition: lwin_wkt.c:904

References check_geom_equal, cu_error_msg_reset(), LW_PARSER_CHECK_NONE, lwgeom_buildarea(), lwgeom_free(), and lwgeom_from_wkt().

Referenced by buildarea_suite_setup().

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