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

◆ test_itree_hole_spike()

static void test_itree_hole_spike ( void  )
static

Definition at line 506 of file cu_tree.c.

507{
508 const char *wktPoly =
509 "POLYGON("
510 "(-10 -10, 6 -10, 7 -10, 7.5 2, 8 -10, 9 -10, 10 -10, 10 10, -10 10, -10 2, -10 2, -10 -10),"
511 "(-5 -5, -5 5, 5 5, 5 -5, -5 -5))";
512
513 /* inside hole */
514 test_itree_once(wktPoly, 2.0, 2.0, ITREE_OUTSIDE);
515 /* inside hole */
516 test_itree_once(wktPoly, -2.0, -2.0, ITREE_OUTSIDE);
517 /* left of spike */
518 test_itree_once(wktPoly, 6.0, -2.0, ITREE_INSIDE);
519 /* right of spike */
520 test_itree_once(wktPoly, 9.0, -2.0, ITREE_INSIDE);
521 /* left of tip of spike */
522 test_itree_once(wktPoly, 6.0, 2.0, ITREE_INSIDE);
523 /* right of tip of spike */
524 test_itree_once(wktPoly, 9.0, 2.0, ITREE_INSIDE);
525 /* on spike tip */
526 test_itree_once(wktPoly, 7.5, 2.0, ITREE_BOUNDARY);
527 /* left of dupe vertex */
528 test_itree_once(wktPoly, -11, 2.0, ITREE_OUTSIDE);
529 /* right of dupe vertex */
530 test_itree_once(wktPoly, 11, 2.0, ITREE_OUTSIDE);
531}
static void test_itree_once(const char *polyWkt, double x, double y, IntervalTreeResult iexp)
Definition cu_tree.c:442
@ ITREE_BOUNDARY
@ ITREE_INSIDE
@ ITREE_OUTSIDE

References ITREE_BOUNDARY, ITREE_INSIDE, ITREE_OUTSIDE, and test_itree_once().

Referenced by tree_suite_setup().

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