PostGIS  2.5.2dev-r@@SVN_REVISION@@

◆ lwline_calculate_circ_tree()

static CIRC_NODE* lwline_calculate_circ_tree ( const LWLINE lwline)

Definition at line 900 of file lwgeodetic_tree.c.

References circ_tree_new(), circ_node::geom_type, lwgeom_get_type(), sort_node::node, and LWLINE::points.

Referenced by lwgeom_calculate_circ_tree().

901 {
902  CIRC_NODE* node;
903  node = circ_tree_new(lwline->points);
904  node->geom_type = lwgeom_get_type((LWGEOM*)lwline);
905  return node;
906 }
Note that p1 and p2 are pointers into an independent POINTARRAY, do not free them.
uint32_t geom_type
uint32_t lwgeom_get_type(const LWGEOM *geom)
Return LWTYPE number.
Definition: lwgeom.c:923
CIRC_NODE * circ_tree_new(const POINTARRAY *pa)
Build a tree of nodes from a point array, one node per edge.
CIRC_NODE * node
Definition: liblwgeom.h:425
Here is the call graph for this function:
Here is the caller graph for this function: