PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ lwpoint_calculate_circ_tree()

static CIRC_NODE* lwpoint_calculate_circ_tree ( const LWPOINT lwpoint)
static

Definition at line 920 of file lwgeodetic_tree.c.

921 {
922  CIRC_NODE* node;
923  node = circ_tree_new(lwpoint->point);
924  node->geom_type = lwgeom_get_type((LWGEOM*)lwpoint);;
925  return node;
926 }
CIRC_NODE * circ_tree_new(const POINTARRAY *pa)
Build a tree of nodes from a point array, one node per edge.
static uint32_t lwgeom_get_type(const LWGEOM *geom)
Return LWTYPE number.
Definition: lwinline.h:135
POINTARRAY * point
Definition: liblwgeom.h:457
uint32_t geom_type
Note that p1 and p2 are pointers into an independent POINTARRAY, do not free them.

References circ_tree_new(), circ_node::geom_type, lwgeom_get_type(), sort_node::node, and LWPOINT::point.

Referenced by lwgeom_calculate_circ_tree().

Here is the call graph for this function:
Here is the caller graph for this function: