259 CU_ASSERT_NOT_EQUAL(result, 0);
266 CU_ASSERT_EQUAL(result, 0);
280 CU_ASSERT_EQUAL(result, 0);
287 CU_ASSERT_EQUAL(result, 0);
294 CU_ASSERT_NOT_EQUAL(result, 0);
301 CU_ASSERT_EQUAL(boundary, 1);
308 CU_ASSERT_EQUAL(boundary, 1);
315 CU_ASSERT_EQUAL(boundary, 1);
322 CU_ASSERT_EQUAL(boundary, 1);
328 poly = (
LWPOLY*)
lwgeom_from_wkt(
"POLYGON((0 0, 3 1, 0 2, 3 3, 0 4, 3 5, 0 6, 5 6, 5 0, 0 0))",
LW_PARSER_CHECK_NONE);
336 CU_ASSERT_EQUAL(result, 0);
343 CU_ASSERT_EQUAL(result, 0);
350 CU_ASSERT_NOT_EQUAL(result, 0);
357 CU_ASSERT_EQUAL(boundary, 1);
364 CU_ASSERT_EQUAL(boundary, 1);
371 CU_ASSERT_EQUAL(boundary, 1);
378 CU_ASSERT_EQUAL(boundary, 1);
385 CU_ASSERT_EQUAL(boundary, 1);
Datum boundary(PG_FUNCTION_ARGS)
LWGEOM * lwgeom_from_wkt(const char *wkt, const char check)
RECT_NODE * rect_tree_new(const POINTARRAY *pa)
Build a tree of nodes from a point array, one node per edge, and each with an associated measure rang...
#define LW_PARSER_CHECK_NONE
int rect_tree_contains_point(const RECT_NODE *node, const POINT2D *pt, int *on_boundary)
void lwpoly_free(LWPOLY *poly)
void rect_tree_free(RECT_NODE *node)
Recurse from top of node tree and free all children.