Function initializing closestpoint calculations.
Definition at line 131 of file measures.c.
References COLLECTIONTYPE, DISTPTS::distance, lw_dist2d_comp(), lwcollection_construct_empty(), LWDEBUG, lwerror(), lwpoint_make2d(), DISTPTS::mode, DISTPTS::p1, DISTPTS::tolerance, pixval::x, POINT2D::x, pixval::y, and POINT2D::y.
Referenced by lw_dist3d_distancepoint(), lwgeom_closest_point(), and lwgeom_furthest_point().
135 double initdistance = FLT_MAX;
142 LWDEBUG(2,
"lw_dist2d_distancepoint is called");
147 lwerror(
"Some unspecified error.");
152 LWDEBUG(3,
"didn't find geometries to measure between, returning null");
int lw_dist2d_comp(const LWGEOM *lw1, const LWGEOM *lw2, DISTPTS *dl)
This function just deserializes geometries Bboxes is not checked here since it is the subgeometries b...
LWPOINT * lwpoint_make2d(int srid, double x, double y)
#define LWDEBUG(level, msg)
Structure used in distance-calculations.
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int srid, char hasz, char hasm)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.