PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ buildarea5()

static void buildarea5 ( void  )
static

Definition at line 224 of file cu_buildarea.c.

225{
226 LWGEOM *gin, *gout, *gexp;
227
229
230 gin = lwgeom_from_wkt(
231"MULTILINESTRING((0 0, 20 0, 20 20, 0 20, 0 0),(2 2, 18 2, 18 18, 2 18, 2 2),(8 8, 8 12, 12 12, 12 8, 8 8),(10 8, 10 12))",
233 CU_ASSERT(gin != NULL);
234
235 gexp = lwgeom_from_wkt(
236"MULTIPOLYGON(((0 0,0 20,20 20,20 0,0 0),(2 2,18 2,18 18,2 18,2 2)),((8 8,8 12,12 12,12 8,8 8)))",
238 CU_ASSERT(gexp != NULL);
239
240 gout = lwgeom_buildarea(gin);
241 CU_ASSERT(gout != NULL);
242
243 check_geom_equal(gout, gexp);
244
245 lwgeom_free(gout);
246 lwgeom_free(gexp);
247 lwgeom_free(gin);
248
249}
#define check_geom_equal(gobt, gexp)
void cu_error_msg_reset()
void lwgeom_free(LWGEOM *geom)
Definition lwgeom.c:1246
#define LW_PARSER_CHECK_NONE
Definition liblwgeom.h:2149
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:940

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: