PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ circ_tree_get_point()

int circ_tree_get_point ( const CIRC_NODE node,

Returns a POINT2D that is a vertex of the input shape.

Definition at line 434 of file lwgeodetic_tree.c.

References circ_node_is_leaf(), circ_tree_get_point(), LW_SUCCESS, circ_node::nodes, circ_node::p1, POINT2D::x, and POINT2D::y.

Referenced by circ_tree_distance_tree_internal(), circ_tree_get_point(), and geography_distance_cache_tolerance().

435 {
436  if ( circ_node_is_leaf(node) )
437  {
438  pt->x = node->p1->x;
439  pt->y = node->p1->y;
440  return LW_SUCCESS;
441  }
442  else
443  {
444  return circ_tree_get_point(node->nodes[0], pt);
445  }
446 }
int circ_tree_get_point(const CIRC_NODE *node, POINT2D *pt)
Returns a POINT2D that is a vertex of the input shape.
POINT2D * p1
#define LW_SUCCESS
Definition: liblwgeom.h:65
double x
Definition: liblwgeom.h:312
static int circ_node_is_leaf(const CIRC_NODE *node)
Internal nodes have their point references set to NULL.
double y
Definition: liblwgeom.h:312
struct circ_node ** nodes
Here is the call graph for this function:
Here is the caller graph for this function: