[postgis-tickets] r14832 - #3524, add interruptibility to geography brute force distance calculation

Paul Ramsey pramsey at cleverelephant.ca
Tue Apr 12 12:20:15 PDT 2016


Author: pramsey
Date: 2016-04-12 12:20:15 -0700 (Tue, 12 Apr 2016)
New Revision: 14832

Modified:
   trunk/liblwgeom/lwgeodetic.c
Log:
#3524, add interruptibility to geography brute force distance calculation


Modified: trunk/liblwgeom/lwgeodetic.c
===================================================================
--- trunk/liblwgeom/lwgeodetic.c	2016-04-12 19:19:27 UTC (rev 14831)
+++ trunk/liblwgeom/lwgeodetic.c	2016-04-12 19:20:15 UTC (rev 14832)
@@ -1910,6 +1910,7 @@
 		/* 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);
 



More information about the postgis-tickets mailing list