Build a tree of nodes from a point array, one node per edge.
Definition at line 355 of file lwgeodetic_tree.c.
356{
357 int num_edges;
358 int i, j;
362
363
365 return NULL;
366
367
370
371
374 j = 0;
375 for ( i = 0; i < num_edges; i++ )
376 {
378 if ( node )
379 nodes[j++] = node;
380 }
381
382
383 if ( j == 0 ) {
386 }
387
388
390
391
393
394 return tree;
395}
void * lwalloc(size_t size)
static CIRC_NODE * circ_node_leaf_point_new(const POINTARRAY *pa)
Return a point node (zero radius, referencing one point)
static CIRC_NODE * circ_node_leaf_new(const POINTARRAY *pa, int i)
Create a new leaf node, storing pointers back to the end points for later.
static CIRC_NODE * circ_nodes_merge(CIRC_NODE **nodes, int num_nodes)
Note that p1 and p2 are pointers into an independent POINTARRAY, do not free them.
References circ_node_leaf_new(), circ_node_leaf_point_new(), circ_nodes_merge(), lwalloc(), lwfree(), and POINTARRAY::npoints.
Referenced by lwline_calculate_circ_tree(), lwpoint_calculate_circ_tree(), lwpoly_calculate_circ_tree(), test_tree_circ_create(), test_tree_circ_pip(), and test_tree_circ_pip2().