[postgis-tickets] [SCM] PostGIS branch main updated. 3.2.0alpha1-24-g1baf9cc

git at osgeo.org git at osgeo.org
Fri Sep 24 13:34:39 PDT 2021


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, main has been updated
       via  1baf9cc491087af450abd31e161ffbd81753a51c (commit)
      from  9042ee9fae5f7350cd3b2cd6798fb24e093719c7 (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 1baf9cc491087af450abd31e161ffbd81753a51c
Author: Sandro Santilli <strk at kbt.io>
Date:   Fri Sep 24 22:32:30 2021 +0200

    Fix more debug formats

diff --git a/liblwgeom/lwgeom_topo.c b/liblwgeom/lwgeom_topo.c
index 8576a61..bf8280e 100644
--- a/liblwgeom/lwgeom_topo.c
+++ b/liblwgeom/lwgeom_topo.c
@@ -7233,10 +7233,10 @@ lwt_GetFaceContainingPoint(LWT_TOPOLOGY* topo, const LWPOINT* pt)
 
   shortestLineP1 = getPoint2d_cp(((LWLINE *)shortestLine)->points, 1);
   closestSegmentIndex = ptarray_closest_segment_2d(closestEdge->geom->points, shortestLineP1, NULL);
-  LWDEBUGF(1, "Closest segment to edge %d is %d", closestEdge->edge_id, closestSegmentIndex);
+  LWDEBUGF(1, "Closest segment on edge %" LWTFMT_ELEMID " is %d", closestEdge->edge_id, closestSegmentIndex);
   closestSegmentP0 = getPoint2d_cp(closestEdge->geom->points, closestSegmentIndex);
   closestSegmentP1 = getPoint2d_cp(closestEdge->geom->points, closestSegmentIndex + 1);
-  LWDEBUGF(1, "Closest segment to edge %d is LINESTRING(%g %g, %g %g)",
+  LWDEBUGF(1, "Closest segment on edge %" LWTFMT_ELEMID " is LINESTRING(%g %g, %g %g)",
     closestEdge->edge_id,
     closestSegmentP0->x,
     closestSegmentP0->y,
@@ -7282,7 +7282,7 @@ lwt_GetFaceContainingPoint(LWT_TOPOLOGY* topo, const LWPOINT* pt)
     nextSegmentP1 = getPoint2d_cp(closestEdge->geom->points, closestSegmentIndex + 2);
 
     if ( ! azimuth_pt_pt(closestSegmentP1, closestSegmentP0, &azS0)) {
-      lwerror("error computing azimuth of reversse closest segment [%.15g %.15g,%.15g %.15g]",
+      lwerror("error computing azimuth of reverse closest segment [%.15g %.15g,%.15g %.15g]",
               closestSegmentP1->x, closestSegmentP1->y,
               closestSegmentP0->x, closestSegmentP0->y);
       lwgeom_free(shortestLine);

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

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


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list