Commit 5f84e676 authored by Paul Ramsey's avatar Paul Ramsey

0se FP_TOLERANCE instead of 0


git-svn-id: http://svn.osgeo.org/postgis/trunk@13564 b70326c6-7e19-0410-871a-916f4a2858ee
parent a46d4aad
......@@ -62,7 +62,7 @@ Datum geography_distance_uncached(PG_FUNCTION_ARGS)
GSERIALIZED *g1 = NULL;
GSERIALIZED *g2 = NULL;
double distance;
double tolerance = 0.0;
double tolerance = FP_TOLERANCE;
bool use_spheroid = true;
SPHEROID s;
......@@ -100,7 +100,7 @@ Datum geography_distance_uncached(PG_FUNCTION_ARGS)
lwgeom_add_bbox_deep(lwgeom1, NULL);
lwgeom_add_bbox_deep(lwgeom2, NULL);
distance = lwgeom_distance_spheroid(lwgeom1, lwgeom2, &s, FP_TOLERANCE);
distance = lwgeom_distance_spheroid(lwgeom1, lwgeom2, &s, tolerance);
/* Clean up */
lwgeom_free(lwgeom1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment