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);
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
#define LW_PARSER_CHECK_NONE
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
void lwline_free(LWLINE *line)
CIRC_NODE * circ_tree_new(const POINTARRAY *pa)
Build a tree of nodes from a point array, one node per edge.
void circ_tree_free(CIRC_NODE *node)
Recurse from top of node tree and free all children.
int circ_tree_contains_point(const CIRC_NODE *node, const POINT2D *pt, const POINT2D *pt_outside, int *on_boundary)
Walk the tree and count intersections between the stab line and the edges.
Note that p1 and p2 are pointers into an independent POINTARRAY, do not free them.