From: Paul Ramsey Date: Tue, 12 Apr 2016 19:20:15 +0000 (+0000) Subject: #3524, add interruptibility to geography brute force distance calculation X-Git-Tag: 2.3.0beta1~157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c89b2ff3057571f436ae0f2ab6557bef30d99d6;p=postgis #3524, add interruptibility to geography brute force distance calculation git-svn-id: http://svn.osgeo.org/postgis/trunk@14832 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwgeodetic.c b/liblwgeom/lwgeodetic.c index 854346524..815c630e4 100644 --- a/liblwgeom/lwgeodetic.c +++ b/liblwgeom/lwgeodetic.c @@ -1910,6 +1910,7 @@ static double ptarray_distance_spheroid(const POINTARRAY *pa1, const POINTARRAY /* Copy end to start to allow a new end value in next iteration */ e1.start = e1.end; A1 = A2; + LW_ON_INTERRUPT(return -1.0); } LWDEBUGF(4,"finished all loops, returning %.8g", distance);