Definition at line 925 of file lwgeodetic_tree.c.
References circ_nodes_merge(), circ_nodes_sort(), circ_node::geom_type, LWCOLLECTION::geoms, lwalloc(), lwfree(), lwgeom_calculate_circ_tree(), lwgeom_get_type(), and LWCOLLECTION::ngeoms.
Referenced by lwgeom_calculate_circ_tree().
937 for ( i = 0; i < lwcol->
ngeoms; i++ )
Note that p1 and p2 are pointers into an independent POINTARRAY, do not free them.
uint32_t lwgeom_get_type(const LWGEOM *geom)
Return LWTYPE number.
CIRC_NODE * lwgeom_calculate_circ_tree(const LWGEOM *lwgeom)
static CIRC_NODE * circ_nodes_merge(CIRC_NODE **nodes, int num_nodes)
static void circ_nodes_sort(CIRC_NODE **nodes, int num_nodes)
Given a list of nodes, sort them into a spatially consistent order, then pairwise merge them up into ...
void * lwalloc(size_t size)