PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ rect_tree_printf()

void rect_tree_printf ( const RECT_NODE node,
int  depth 
)

Definition at line 709 of file lwtree.c.

710{
711 printf("%*s----\n", depth, "");
712 printf("%*stype: %d\n", depth, "", node->type);
713 printf("%*sgeom_type: %d\n", depth, "", node->geom_type);
714 printf("%*sbox: %g %g, %g %g\n", depth, "", node->xmin, node->ymin, node->xmax, node->ymax);
715 if (node->type == RECT_NODE_LEAF_TYPE)
716 {
717 printf("%*sseg_type: %d\n", depth, "", node->l.seg_type);
718 printf("%*sseg_num: %d\n", depth, "", node->l.seg_num);
719 }
720 else
721 {
722 int i;
723 for (i = 0; i < node->i.num_nodes; i++)
724 {
725 rect_tree_printf(node->i.nodes[i], depth+2);
726 }
727 }
728}
void rect_tree_printf(const RECT_NODE *node, int depth)
Definition lwtree.c:709
@ RECT_NODE_LEAF_TYPE
Definition lwtree.h:30
struct rect_node * nodes[RECT_NODE_SIZE]
Definition lwtree.h:61
RECT_NODE_SEG_TYPE seg_type
Definition lwtree.h:51
RECT_NODE_TYPE type
Definition lwtree.h:67
double ymin
Definition lwtree.h:71
double xmax
Definition lwtree.h:70
double ymax
Definition lwtree.h:72
RECT_NODE_INTERNAL i
Definition lwtree.h:75
RECT_NODE_LEAF l
Definition lwtree.h:76
unsigned char geom_type
Definition lwtree.h:68
double xmin
Definition lwtree.h:69

References rect_node::geom_type, rect_node::i, rect_node::l, RECT_NODE_INTERNAL::nodes, RECT_NODE_INTERNAL::num_nodes, RECT_NODE_LEAF_TYPE, rect_tree_printf(), RECT_NODE_LEAF::seg_num, RECT_NODE_LEAF::seg_type, rect_node::type, rect_node::xmax, rect_node::xmin, rect_node::ymax, and rect_node::ymin.

Referenced by rect_tree_printf().

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