PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ rect_tree_get_point()

static const POINT2D* rect_tree_get_point ( const RECT_NODE node)
static

Definition at line 897 of file lwtree.c.

898 {
899  if (!node) return NULL;
900  if (rect_node_is_leaf(node))
901  return getPoint2d_cp(node->l.pa, 0);
902  else
903  return rect_tree_get_point(node->i.nodes[0]);
904 }
const POINT2D * getPoint2d_cp(const POINTARRAY *pa, uint32_t n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from.
Definition: lwgeom_api.c:374
static const POINT2D * rect_tree_get_point(const RECT_NODE *node)
Definition: lwtree.c:897
static int rect_node_is_leaf(const RECT_NODE *node)
Definition: lwtree.c:31
struct rect_node * nodes[RECT_NODE_SIZE]
Definition: lwtree.h:61
const POINTARRAY * pa
Definition: lwtree.h:50
RECT_NODE_INTERNAL i
Definition: lwtree.h:75
RECT_NODE_LEAF l
Definition: lwtree.h:76

References getPoint2d_cp(), rect_node::i, rect_node::l, RECT_NODE_INTERNAL::nodes, RECT_NODE_LEAF::pa, and rect_node_is_leaf().

Referenced by rect_tree_distance_tree(), and rect_tree_intersects_tree().

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