Definition at line 490 of file lwtree.c.
491{
496
497 switch (seg_type)
498 {
500 {
504 break;
505 }
506
508 {
511
512 if ((p1->
x == p2->
x) && (p1->
y == p2->
y))
513 return NULL;
518 break;
519 }
520
522 {
526
527 if ((p1->
x == p2->
x) && (p2->
x == p3->
x) &&
528 (p1->
y == p2->
y) && (p2->
y == p3->
y))
529 return NULL;
531 break;
532 }
533
534 default:
535 {
536 lwerror(
"%s: unsupported seg_type - %d", __func__, seg_type);
537 return NULL;
538 }
539 }
540
551 return node;
552}
int lw_arc_calculate_gbox_cartesian_2d(const POINT2D *A1, const POINT2D *A2, const POINT2D *A3, GBOX *gbox)
void * lwalloc(size_t size)
void void lwerror(const char *fmt,...) __attribute__((format(printf
Write a notice out to the error handler.
static const POINT2D * getPoint2d_cp(const POINTARRAY *pa, uint32_t n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from.
static RECT_NODE_SEG_TYPE lwgeomTypeArc[]
RECT_NODE_SEG_TYPE seg_type
References FP_MAX, FP_MIN, rect_node::geom_type, getPoint2d_cp(), rect_node::l, lw_arc_calculate_gbox_cartesian_2d(), lwalloc(), lwerror(), lwgeomTypeArc, RECT_NODE_LEAF::pa, RECT_NODE_LEAF_TYPE, RECT_NODE_SEG_CIRCULAR, RECT_NODE_SEG_LINEAR, RECT_NODE_SEG_POINT, RECT_NODE_LEAF::seg_num, RECT_NODE_LEAF::seg_type, rect_node::type, POINT2D::x, GBOX::xmax, rect_node::xmax, GBOX::xmin, rect_node::xmin, POINT2D::y, GBOX::ymax, rect_node::ymax, GBOX::ymin, and rect_node::ymin.
Referenced by rect_tree_from_ptarray().