]> granicus.if.org Git - postgis/commitdiff
#3524, add interruptibility to geography brute force distance calculation
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 12 Apr 2016 19:20:15 +0000 (19:20 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 12 Apr 2016 19:20:15 +0000 (19:20 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@14832 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeodetic.c

index 85434652409a81a30f1a9bbdc337cb6cbf112d9c..815c630e427fbb349437bab546095a1a449c3302 100644 (file)
@@ -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);