[postgis-tickets] r14977 - Make adding a line to topology interruptible
Sandro Santilli
strk at kbt.io
Thu Jun 23 00:15:12 PDT 2016
Author: strk
Date: 2016-06-23 00:15:12 -0700 (Thu, 23 Jun 2016)
New Revision: 14977
Modified:
trunk/NEWS
trunk/liblwgeom/lwgeom_topo.c
Log:
Make adding a line to topology interruptible
... as it otherwise gets frustrating when slow (see #3587)
Modified: trunk/NEWS
===================================================================
--- trunk/NEWS 2016-06-23 07:15:05 UTC (rev 14976)
+++ trunk/NEWS 2016-06-23 07:15:12 UTC (rev 14977)
@@ -41,6 +41,7 @@
- #3383, Avoid deserializing small geometries during index operations
(Dan Baston)
- #3400, Minor optimization of PIP routines (Dan Baston)
+ - Make adding a line to topology interruptible (Sandro Santilli)
PostGIS 2.2.2
2016/03/22
Modified: trunk/liblwgeom/lwgeom_topo.c
===================================================================
--- trunk/liblwgeom/lwgeom_topo.c 2016-06-23 07:15:05 UTC (rev 14976)
+++ trunk/liblwgeom/lwgeom_topo.c 2016-06-23 07:15:12 UTC (rev 14977)
@@ -5659,6 +5659,7 @@
int nn=0;
for (i=0; i<num; ++i)
{
+ LW_ON_INTERRUPT(return NULL);
LWT_ISO_EDGE *e = &(edges[i]);
LWGEOM *g = lwline_as_lwgeom(e->geom);
LWDEBUGF(2, "Computing distance from edge %d having %d points", i, e->geom->points->npoints);
More information about the postgis-tickets
mailing list