From: Paul Ramsey Date: Tue, 6 Oct 2009 04:59:18 +0000 (+0000) Subject: Make db implementation consistent with liblwgeom X-Git-Tag: 1.5.0b1~410 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3bee62fcd93d600c63f5d2fd8e81fa04f60edfee;p=postgis Make db implementation consistent with liblwgeom git-svn-id: http://svn.osgeo.org/postgis/trunk@4600 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/cunit/cu_geodetic.c b/liblwgeom/cunit/cu_geodetic.c index 95db1b848..253d77f08 100644 --- a/liblwgeom/cunit/cu_geodetic.c +++ b/liblwgeom/cunit/cu_geodetic.c @@ -12,7 +12,7 @@ #include "cu_geodetic.h" -#define RANDOM_TEST 0 +#define RANDOM_TEST 1000 /* ** Called from test harness to register the tests in this file. diff --git a/postgis/geography_distance.c b/postgis/geography_distance.c index 6e07e8faa..af79d370c 100644 --- a/postgis/geography_distance.c +++ b/postgis/geography_distance.c @@ -67,7 +67,7 @@ Datum geography_distance_sphere(PG_FUNCTION_ARGS) tolerance = tolerance / WGS84_RADIUS; /* Calculate the distance */ - distance = lwgeom_distance_sphere(lwgeom1, lwgeom2, &gbox1, &gbox2, tolerance); + distance = lwgeom_distance_sphere(lwgeom1, lwgeom2, gbox1, gbox2, tolerance); /* Something went wrong... should already be eloged */ if( distance < 0.0 )