PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ buildarea3()

static void buildarea3 ( void  )
static

Definition at line 116 of file cu_buildarea.c.

117 {
118  LWGEOM *gin, *gout, *gexp;
119 
121 
122  gin = lwgeom_from_wkt(
123 "MULTILINESTRING((0 0, 20 0, 20 20, 0 20, 0 0),(2 2, 18 2, 18 18, 2 18, 2 2))",
125  CU_ASSERT(gin != NULL);
126 
127  gexp = lwgeom_from_wkt(
128 "POLYGON((0 0,0 20,20 20,20 0,0 0),(2 2,18 2,18 18,2 18,2 2))",
130  CU_ASSERT(gexp != NULL);
131 
132  gout = lwgeom_buildarea(gin);
133  CU_ASSERT(gout != NULL);
134 
135  check_geom_equal(gout, gexp);
136 
137  lwgeom_free(gout);
138  lwgeom_free(gexp);
139  lwgeom_free(gin);
140 
141 }
#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: