]> granicus.if.org Git - postgis/commitdiff
Add debugging lines to sqlmm edge splitting functions
authorSandro Santilli <strk@keybit.net>
Fri, 23 Mar 2012 17:08:08 +0000 (17:08 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 23 Mar 2012 17:08:08 +0000 (17:08 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9536 b70326c6-7e19-0410-871a-916f4a2858ee

topology/sql/sqlmm.sql.in.c

index 8676605b882502a609a49acedf68f40b83072708..103aaf017b2fd5e035825591ddc6191f4b0892c3 100644 (file)
@@ -1922,6 +1922,10 @@ BEGIN
     edgeid2 = rec.nextval;
   END LOOP;
 
+#ifdef POSTGIS_TOPOLOGY_DEBUG
+  RAISE DEBUG ' inserting new edges % and % split from %', edgeid1, edgeid2, anedge;
+#endif
+
   --RAISE NOTICE 'EdgeId1 % EdgeId2 %', edgeid1, edgeid2;
 
   --RAISE DEBUG 'oldedge.next_left_edge: %', oldedge.next_left_edge;
@@ -2207,6 +2211,10 @@ BEGIN
     newedgeid = rec.nextval;
   END LOOP;
 
+#ifdef POSTGIS_TOPOLOGY_DEBUG
+  RAISE DEBUG ' inserting new edge % split from %', newedgeid, anedge;
+#endif
+
   --
   -- Insert the new edge
   --