]> granicus.if.org Git - postgis/commitdiff
Make db implementation consistent with liblwgeom
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 6 Oct 2009 04:59:18 +0000 (04:59 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 6 Oct 2009 04:59:18 +0000 (04:59 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4600 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/cunit/cu_geodetic.c
postgis/geography_distance.c

index 95db1b848eac510c4d692b2da9277c8c96349701..253d77f08c0366bb69d41ea109b882fddb74b2f7 100644 (file)
@@ -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.
index 6e07e8faade26a1e979f814c742ec21a2b23b73e..af79d370ca274d19cdc3c90c2e7166ba4f511598 100644 (file)
@@ -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 )