PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ rect_node_internal_new()

static RECT_NODE* rect_node_internal_new ( const RECT_NODE seed)
static

Definition at line 570 of file lwtree.c.

571 {
572  RECT_NODE *node = lwalloc(sizeof(RECT_NODE));
573  node->xmin = seed->xmin;
574  node->xmax = seed->xmax;
575  node->ymin = seed->ymin;
576  node->ymax = seed->ymax;
577  node->geom_type = seed->geom_type;
579  node->i.num_nodes = 0;
581  node->i.sorted = 0;
582  return node;
583 }
void * lwalloc(size_t size)
Definition: lwutil.c:229
@ RECT_NODE_INTERNAL_TYPE
Definition: lwtree.h:29
@ RECT_NODE_RING_NONE
Definition: lwtree.h:35
RECT_NODE_RING_TYPE ring_type
Definition: lwtree.h:60
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
unsigned char geom_type
Definition: lwtree.h:68
double xmin
Definition: lwtree.h:69

References rect_node::geom_type, rect_node::i, lwalloc(), RECT_NODE_INTERNAL::num_nodes, RECT_NODE_INTERNAL_TYPE, RECT_NODE_RING_NONE, RECT_NODE_INTERNAL::ring_type, RECT_NODE_INTERNAL::sorted, rect_node::type, rect_node::xmax, rect_node::xmin, rect_node::ymax, and rect_node::ymin.

Referenced by rect_nodes_merge(), and rect_tree_from_lwcurvepoly().

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