mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-25 01:22:47 +00:00
Make db implementation consistent with liblwgeom
git-svn-id: http://svn.osgeo.org/postgis/trunk@4600 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
0ae032c13c
commit
3bee62fcd9
|
@ -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.
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue