[geos-commits] [SCM] geos branch snap-interrupt created. d7e6a0f995165a2099970997b0088dd292fb9a32

git at osgeo.org git at osgeo.org
Mon Sep 11 13:40:17 PDT 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "geos".

The branch, snap-interrupt has been created
        at  d7e6a0f995165a2099970997b0088dd292fb9a32 (commit)

- Log -----------------------------------------------------------------
commit d7e6a0f995165a2099970997b0088dd292fb9a32
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Mon Sep 11 13:38:44 2017 -0700

    Add interrupts to the snap operation

diff --git a/src/operation/overlay/snap/LineStringSnapper.cpp b/src/operation/overlay/snap/LineStringSnapper.cpp
index c15915d..a3c8ab9 100644
--- a/src/operation/overlay/snap/LineStringSnapper.cpp
+++ b/src/operation/overlay/snap/LineStringSnapper.cpp
@@ -26,6 +26,7 @@
 #include <geos/geom/CoordinateList.h>
 #include <geos/util/UniqueCoordinateArrayFilter.h>
 #include <geos/geom/LineSegment.h>
+#include <geos/util/Interrupt.h>
 
 #include <vector>
 #include <memory>
@@ -125,6 +126,7 @@ cerr << "Snapping vertices of: " << srcCoords << endl;
 			it != end;
 			++it)
 	{
+	    GEOS_CHECK_FOR_INTERRUPTS();
 		assert(*it);
 		const Coordinate& snapPt = *(*it);
 
@@ -228,6 +230,8 @@ LineStringSnapper::snapSegments(geom::CoordinateList& srcCoords,
   // nothing to do if there are no source coords..
   if ( srcCoords.empty() ) return;
 
+	GEOS_CHECK_FOR_INTERRUPTS();
+
 #if GEOS_DEBUG
 cerr << "Snapping segments of: " << srcCoords << endl;
 #endif

-----------------------------------------------------------------------


hooks/post-receive
-- 
geos


More information about the geos-commits mailing list