[SCM] PostGIS branch master updated. 3.4.0rc1-1040-gd37594dfa

git at osgeo.org git at osgeo.org
Fri Mar 22 09:04:46 PDT 2024


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 "PostGIS".

The branch, master has been updated
       via  d37594dfafb21a71119252fe06bf05d9fc79b796 (commit)
      from  88c3893c718847867714dc1bfddfa5db7c0a55e3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d37594dfafb21a71119252fe06bf05d9fc79b796
Author: Sandro Santilli <strk at kbt.io>
Date:   Fri Mar 22 17:04:03 2024 +0100

    Add more debugging lines

diff --git a/liblwgeom/topo/lwgeom_topo.c b/liblwgeom/topo/lwgeom_topo.c
index 70e72c095..c00fa027c 100644
--- a/liblwgeom/topo/lwgeom_topo.c
+++ b/liblwgeom/topo/lwgeom_topo.c
@@ -26,7 +26,7 @@
 
 #include "../postgis_config.h"
 
-/*#define POSTGIS_DEBUG_LEVEL 1*/
+/*#define POSTGIS_DEBUG_LEVEL 2*/
 #include "lwgeom_log.h"
 
 #include "liblwgeom_internal.h"
@@ -951,6 +951,7 @@ _lwt_EdgeSplit( LWT_TOPOLOGY* topo, LWT_ELEMID edge, LWPOINT* pt, int skipISOChe
   LWDEBUG(1, "calling lwt_be_getEdgeById");
   *oldedge = lwt_be_getEdgeById(topo, &edge, &i, LWT_COL_EDGE_ALL);
   LWDEBUGF(1, "lwt_be_getEdgeById returned %p", *oldedge);
+  LWDEBUGG(2, lwline_as_lwgeom(oldedge[0]->geom), "Edge to be split");
   if ( ! *oldedge )
   {
     LWDEBUGF(1, "lwt_be_getEdgeById returned NULL and set i=%d", i);
@@ -1006,13 +1007,14 @@ _lwt_EdgeSplit( LWT_TOPOLOGY* topo, LWT_ELEMID edge, LWPOINT* pt, int skipISOChe
     return NULL;
   }
   if (split_col->ngeoms < 2) {
+    LWDEBUGG(1, lwpoint_as_lwgeom(pt), "Unable to split edge by point");
     _lwt_release_edges(*oldedge, 1);
     lwgeom_free(split);
     lwerror("SQL/MM Spatial exception - point not on edge");
     return NULL;
   }
 
-#if 0
+#if POSTGIS_DEBUG_LEVEL > 1
   {
   size_t sz;
   char *wkt = lwgeom_to_wkt((LWGEOM*)split_col, WKT_EXTENDED, 2, &sz);

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

Summary of changes:
 liblwgeom/topo/lwgeom_topo.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list