Definition at line 24 of file cu_tree.c.
References CIRC_NODE_SIZE, circ_tree_free(), circ_tree_new(), LW_PARSER_CHECK_NONE, lwgeom_as_lwline(), lwgeom_from_wkt(), lwline_free(), circ_node::num_nodes, and LWLINE::points.
Referenced by tree_suite_setup().
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)
#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.