[SCM] PostGIS branch master updated. 3.5.0-21-g77bcee793

git at osgeo.org git at osgeo.org
Fri Oct 11 23:39:02 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  77bcee79332a82a5b5fc7ae6ae47470939a855fa (commit)
      from  f266d62c1e209c4544ab44eeb149ebe951cd4064 (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 77bcee79332a82a5b5fc7ae6ae47470939a855fa
Author: Maxime Schoemans <maxime.schoemans at ulb.ac.be>
Date:   Fri Sep 27 18:27:01 2024 +0200

    export circ_tree_distance_tree_internal
    and use memset instead of bzero
    Closes #5784 for PostGIS 3.6.0

diff --git a/NEWS b/NEWS
index 4a66a90f3..e035f6c71 100644
--- a/NEWS
+++ b/NEWS
@@ -8,3 +8,6 @@ PostGIS 3.6.0
 
 
 * New Features *
+
+#5784, GT-223 Export circ_tree_distance_tree_internal for mobilitydb use
+      (Maxime Schoemans)
diff --git a/liblwgeom/lwgeodetic_tree.c b/liblwgeom/lwgeodetic_tree.c
index 6e7909741..7031df4be 100644
--- a/liblwgeom/lwgeodetic_tree.c
+++ b/liblwgeom/lwgeodetic_tree.c
@@ -30,7 +30,6 @@
 
 /* Internal prototype */
 static CIRC_NODE* circ_nodes_merge(CIRC_NODE** nodes, int num_nodes);
-static double circ_tree_distance_tree_internal(const CIRC_NODE* n1, const CIRC_NODE* n2, double threshold, double* min_dist, double* max_dist, GEOGRAPHIC_POINT* closest1, GEOGRAPHIC_POINT* closest2);
 
 
 /**
diff --git a/liblwgeom/lwgeodetic_tree.h b/liblwgeom/lwgeodetic_tree.h
index 90987a6cf..bf025566f 100644
--- a/liblwgeom/lwgeodetic_tree.h
+++ b/liblwgeom/lwgeodetic_tree.h
@@ -52,6 +52,7 @@ CIRC_NODE* circ_tree_new(const POINTARRAY* pa);
 void circ_tree_free(CIRC_NODE* node);
 int circ_tree_contains_point(const CIRC_NODE* node, const POINT2D* pt, const POINT2D* pt_outside, int level, int* on_boundary);
 double circ_tree_distance_tree(const CIRC_NODE* n1, const CIRC_NODE* n2, const SPHEROID *spheroid, double threshold);
+double circ_tree_distance_tree_internal(const CIRC_NODE* n1, const CIRC_NODE* n2, double threshold, double* min_dist, double* max_dist, GEOGRAPHIC_POINT* closest1, GEOGRAPHIC_POINT* closest2);
 CIRC_NODE* lwgeom_calculate_circ_tree(const LWGEOM* lwgeom);
 int circ_tree_get_point(const CIRC_NODE* node, POINT2D* pt);
 int circ_tree_get_point_outside(const CIRC_NODE* node, POINT2D* pt);
diff --git a/liblwgeom/ptarray.c b/liblwgeom/ptarray.c
index 3732ed9cc..cabf679a9 100644
--- a/liblwgeom/ptarray.c
+++ b/liblwgeom/ptarray.c
@@ -2219,7 +2219,7 @@ ptarray_scroll_in_place(POINTARRAY *pa, const POINT4D *pt)
 	/* TODO: reduce allocations */
 	tmp = ptarray_construct(FLAGS_GET_Z(pa->flags), FLAGS_GET_M(pa->flags), pa->npoints);
 
-	bzero(getPoint_internal(tmp, 0), (size_t)ptsize * pa->npoints);
+	memset(getPoint_internal(tmp, 0), 0, (size_t)ptsize * pa->npoints);
 	/* Copy the block from found point to last point into the output array */
 	memcpy(
 		getPoint_internal(tmp, 0),

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

Summary of changes:
 NEWS                        | 3 +++
 liblwgeom/lwgeodetic_tree.c | 1 -
 liblwgeom/lwgeodetic_tree.h | 1 +
 liblwgeom/ptarray.c         | 2 +-
 4 files changed, 5 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
PostGIS


More information about the postgis-tickets mailing list