PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ lwgeom_maxdistance2d_tolerance()

double lwgeom_maxdistance2d_tolerance ( const LWGEOM lw1,
const LWGEOM lw2,
double  tolerance 
)
extern

Function handling max distance calculations and dfullywithin calculations.

The difference is just the tolerance.

Definition at line 192 of file measures.c.

193{
194 /*double thedist;*/
195 DISTPTS thedl;
196 LWDEBUG(2, "lwgeom_maxdistance2d_tolerance is called");
197 thedl.mode = DIST_MAX;
198 thedl.distance = -1;
199 thedl.tolerance = tolerance;
200 if (lw_dist2d_comp(lw1, lw2, &thedl))
201 return thedl.distance;
202
203 /*should never get here. all cases ought to be error handled earlier*/
204 lwerror("Some unspecified error.");
205 return -1;
206}
#define LWDEBUG(level, msg)
Definition lwgeom_log.h:101
void void lwerror(const char *fmt,...) __attribute__((format(printf
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...
Definition measures.c:251
#define DIST_MAX
Definition measures.h:43
double tolerance
Definition measures.h:56
int mode
Definition measures.h:54
double distance
Definition measures.h:51
Structure used in distance-calculations.
Definition measures.h:50

References DIST_MAX, DISTPTS::distance, lw_dist2d_comp(), LWDEBUG, lwerror(), DISTPTS::mode, and DISTPTS::tolerance.

Referenced by lwgeom_maxdistance2d(), lwgeom_maxdistance3d_tolerance(), and rt_raster_fully_within_distance().

Here is the call graph for this function:
Here is the caller graph for this function: