Function initializing closestpoint calculations.
Definition at line 128 of file measures.c.
132 double initdistance = FLT_MAX;
139 LWDEBUG(2,
"lw_dist2d_distancepoint is called");
144 lwerror(
"Some unspecified error.");
149 LWDEBUG(3,
"didn't find geometries to measure between, returning null");
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, pixval::x, POINT2D::y, and pixval::y.
Referenced by lw_dist3d_distancepoint(), lwgeom_closest_point(), and lwgeom_furthest_point().