PostGIS  2.1.10dev-r@@SVN_REVISION@@
int circ_tree_get_point ( const CIRC_NODE node,

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

Definition at line 433 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().

434 {
435  if ( circ_node_is_leaf(node) )
436  {
437  pt->x = node->p1->x;
438  pt->y = node->p1->y;
439  return LW_SUCCESS;
440  }
441  else
442  {
443  return circ_tree_get_point(node->nodes[0], pt);
444  }
445 }
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:55
double x
Definition: liblwgeom.h:284
static int circ_node_is_leaf(const CIRC_NODE *node)
Internal nodes have their point references set to NULL.
double y
Definition: liblwgeom.h:284
struct circ_node ** nodes

Here is the call graph for this function:

Here is the caller graph for this function: