Function initializing closestpoint calculations.
Definition at line 131 of file measures.c.
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");
LWPOINT * lwpoint_make2d(int srid, double x, double y)
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int srid, char hasz, char hasm)
#define LWDEBUG(level, msg)
void lwerror(const char *fmt,...)
Write a notice out to the error handler.
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...
Structure used in distance-calculations.
References COLLECTIONTYPE, DISTPTS::distance, lw_dist2d_comp(), lwcollection_construct_empty(), LWDEBUG, lwerror(), lwpoint_make2d(), DISTPTS::mode, DISTPTS::p1, DISTPTS::tolerance, POINT2D::x, pixval::x, POINT2D::y, and pixval::y.
Referenced by lw_dist3d_distancepoint(), lwgeom_closest_point(), and lwgeom_furthest_point().