Definition at line 995 of file cu_measures.c.
References cu_error_msg, cu_error_msg_reset(), DIST_MIN, DISTPTS::distance, lw_dist2d_distpts_init(), lw_dist2d_ptarray_ptarrayarc(), LW_FAILURE, LW_SUCCESS, lwgeom_as_lwline(), lwgeom_from_text(), lwline_free(), and LWLINE::points.
Referenced by measures_suite_setup().
1011 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 1, 0.000001);
1019 CU_ASSERT_STRING_EQUAL(
"lw_dist2d_ptarray_ptarrayarc called with non-arc input",
cu_error_msg);
1028 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 1, 0.000001);
1037 CU_ASSERT_DOUBLE_EQUAL(dl.
distance, 0.5, 0.000001);
void lwline_free(LWLINE *line)
static LWGEOM * lwgeom_from_text(const char *str)
void cu_error_msg_reset()
int lw_dist2d_ptarray_ptarrayarc(const POINTARRAY *pa, const POINTARRAY *pb, DISTPTS *dl)
Test each segment of pa against each arc of pb for distance.
LWLINE * lwgeom_as_lwline(const LWGEOM *lwgeom)
Structure used in distance-calculations.
void lw_dist2d_distpts_init(DISTPTS *dl, int mode)
char cu_error_msg[MAX_CUNIT_ERROR_LENGTH+1]