PostGIS  2.5.0dev-r@@SVN_REVISION@@
static CIRC_NODE* lwpoint_calculate_circ_tree ( const LWPOINT lwpoint)
static

Definition at line 842 of file lwgeodetic_tree.c.

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

Referenced by lwgeom_calculate_circ_tree().

843 {
844  CIRC_NODE* node;
845  node = circ_tree_new(lwpoint->point);
846  node->geom_type = lwgeom_get_type((LWGEOM*)lwpoint);;
847  return node;
848 }
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:916
POINTARRAY * point
Definition: liblwgeom.h:410
CIRC_NODE * circ_tree_new(const POINTARRAY *pa)
Build a tree of nodes from a point array, one node per edge.

Here is the call graph for this function:

Here is the caller graph for this function: