Definition at line 392 of file cu_measures.c.
References LW_FALSE, LW_PARSER_CHECK_NONE, LW_TRUE, lwgeom_from_wkt(), lwpoly_free(), rect_tree_free(), rect_tree_intersects_tree(), rect_tree_new(), and LWPOLY::rings.
Referenced by measures_suite_setup().
399 poly1 = (
LWPOLY*)
lwgeom_from_wkt(
"POLYGON((0 0, 3 1, 0 2, 3 3, 0 4, 3 5, 0 6, 5 6, 5 0, 0 0))",
LW_PARSER_CHECK_NONE);
400 poly2 = (
LWPOLY*)
lwgeom_from_wkt(
"POLYGON((0 0, 3 1, 0 2, 3 3, 0 4, 3 5, 0 6, 5 6, 5 0, 0 0))",
LW_PARSER_CHECK_NONE);
404 CU_ASSERT_EQUAL(result,
LW_TRUE);
411 poly1 = (
LWPOLY*)
lwgeom_from_wkt(
"POLYGON((0 0, 3 1, 0 2, 3 3, 0 4, 3 5, 0 6, 5 6, 5 0, 0 0))",
LW_PARSER_CHECK_NONE);
423 poly1 = (
LWPOLY*)
lwgeom_from_wkt(
"POLYGON((0 0, 3 1, 0 2, 3 3, 0 4, 3 5, 0 6, 5 6, 5 0, 0 0))",
LW_PARSER_CHECK_NONE);
428 CU_ASSERT_EQUAL(result,
LW_TRUE);
435 poly1 = (
LWPOLY*)
lwgeom_from_wkt(
"POLYGON((0 0, 3 1, 0 2, 3 3, 0 4, 3 5, 0 6, 5 6, 5 0, 0 0))",
LW_PARSER_CHECK_NONE);
440 CU_ASSERT_EQUAL(result,
LW_TRUE);
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
RECT_NODE * rect_tree_new(const POINTARRAY *pa)
Build a tree of nodes from a point array, one node per edge, and each with an associated measure rang...
#define LW_PARSER_CHECK_NONE
void lwpoly_free(LWPOLY *poly)
#define LW_TRUE
Return types for functions with status returns.
int rect_tree_intersects_tree(const RECT_NODE *n1, const RECT_NODE *n2)
void rect_tree_free(RECT_NODE *node)
Recurse from top of node tree and free all children.