Function initializing closestpoint calculations.
Definition at line 128 of file measures.c.
129{
132 double initdistance = FLT_MAX;
134
138
139 LWDEBUG(2,
"lw_dist2d_distancepoint is called");
140
142 {
143
144 lwerror(
"Some unspecified error.");
146 }
148 {
149 LWDEBUG(3,
"didn't find geometries to measure between, returning null");
151 }
152 else
153 {
157 }
158 return result;
159}
LWPOINT * lwpoint_make2d(int32_t srid, double x, double y)
LWCOLLECTION * lwcollection_construct_empty(uint8_t type, int32_t 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, and POINT2D::y.
Referenced by lw_dist3d_distancepoint(), lwgeom_closest_point(), and lwgeom_furthest_point().