Definition at line 659 of file measures.c.
References DIST_MAX, DIST_MIN, DISTPTS::distance, getPoint2d_cp(), lw_dist2d_recursive(), LW_OUTSIDE, LW_TRUE, LWDEBUG, lwerror(), lwgeom_contains_point(), DISTPTS::mode, LWCURVEPOLY::nrings, DISTPTS::p1, DISTPTS::p2, LWPOINT::point, LWCURVEPOLY::rings, POINT2D::x, and POINT2D::y.
Referenced by lw_dist2d_distribute_bruteforce().
667 lwerror(
"lw_dist2d_point_curvepoly cannot calculate max distance");
681 for ( i = 1; i < poly->
nrings; i++)
691 LWDEBUG(3,
" inside the polygon");
int lw_dist2d_recursive(const LWGEOM *lwg1, const LWGEOM *lwg2, DISTPTS *dl)
This is a recursive function delivering every possible combinatin of subgeometries.
#define LWDEBUG(level, msg)
const POINT2D * getPoint2d_cp(const POINTARRAY *pa, int n)
Returns a POINT2D pointer into the POINTARRAY serialized_ptlist, suitable for reading from...
#define LW_TRUE
Return types for functions with status returns.
int lwgeom_contains_point(const LWGEOM *geom, const POINT2D *pt)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.