63 CU_ASSERT_EQUAL(rv, 1);
69 CU_ASSERT_EQUAL(rv, 0);
82 CU_ASSERT_EQUAL(rv, 1);
88 CU_ASSERT_EQUAL(rv, 0);
102 CU_ASSERT_EQUAL(rv, 0);
109 CU_ASSERT_EQUAL(rv, 1);
Note that p1 and p2 are pointers into an independent POINTARRAY, do not free them.
void lwline_free(LWLINE *line)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
int circ_tree_contains_point(const CIRC_NODE *node, const POINT2D *pt, const POINT2D *pt_outside, int level, int *on_boundary)
Walk the tree and count intersections between the stab line and the edges.
#define LW_PARSER_CHECK_NONE
CIRC_NODE * circ_tree_new(const POINTARRAY *pa)
Build a tree of nodes from a point array, one node per edge.
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
void circ_tree_free(CIRC_NODE *node)
Recurse from top of node tree and free all children.