[SCM] PostGIS branch master updated. 3.6.0rc2-364-g2cbc46f29
git at osgeo.org
git at osgeo.org
Fri Mar 6 04:47:50 PST 2026
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 2cbc46f2915e694ec329407503574004c16311b9 (commit)
from e48c072d066590721b0c100818c2e484c7f0395d (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 2cbc46f2915e694ec329407503574004c16311b9
Author: Darafei Praliaskouski <me at komzpa.net>
Date: Fri Mar 6 16:46:56 2026 +0400
topology: avoid uninitialized edge id in edge split
diff --git a/liblwgeom/topo/lwgeom_topo.c b/liblwgeom/topo/lwgeom_topo.c
index 054c2b21c..07e7ba7cd 100644
--- a/liblwgeom/topo/lwgeom_topo.c
+++ b/liblwgeom/topo/lwgeom_topo.c
@@ -6138,7 +6138,10 @@ _lwt_SnapEdgeToExistingNode(
newEdge.geom = lwgeom_as_lwline(splitC->geoms[1]);
newEdge.end_node = edge->end_node;
newEdge.start_node = node->node_id;
- newEdge.next_right = -updatedEdge.edge_id; // to be assigned later, if needed
+ /* Seed the split pair with mutual linkage; nodeStar may replace these
+ * with the actual neighboring edges below.
+ */
+ newEdge.next_right = -edge->edge_id;
if ( edge->next_left == -edge->edge_id ) {
newEdge.next_left = -newEdge.edge_id;
} else {
@@ -6151,7 +6154,7 @@ _lwt_SnapEdgeToExistingNode(
updatedEdge.edge_id = edge->edge_id;
updatedEdge.geom = lwgeom_as_lwline(splitC->geoms[0]);
updatedEdge.end_node = node->node_id;
- updatedEdge.next_left = newEdge.edge_id; // to be re-assigned later, if needed
+ updatedEdge.next_left = newEdge.edge_id;
LWT_EDGEEND_STAR *nodeStar = lwt_edgeEndStar_init( node->node_id );
-----------------------------------------------------------------------
Summary of changes:
liblwgeom/topo/lwgeom_topo.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list