PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ geography_distance_cache()

int geography_distance_cache ( FunctionCallInfo  fcinfo,
SHARED_GSERIALIZED *  g1,
SHARED_GSERIALIZED *  g2,
const SPHEROID s,
double *  distance 
)

Definition at line 254 of file geography_measurement_trees.c.

259 {
260  return geography_distance_cache_tolerance(fcinfo, g1, g2, s, FP_TOLERANCE, distance);
261 }
char * s
Definition: cu_in_wkt.c:23
static int geography_distance_cache_tolerance(FunctionCallInfo fcinfo, SHARED_GSERIALIZED *shared_g1, SHARED_GSERIALIZED *shared_g2, const SPHEROID *s, double tolerance, double *distance)
#define FP_TOLERANCE
Floating point comparators.
static double distance(double x1, double y1, double x2, double y2)
Definition: lwtree.c:1032

References distance(), FP_TOLERANCE, geography_distance_cache_tolerance(), and s.

Referenced by geography_distance().

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