[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0rc2-1018-g20efe13b6
git at osgeo.org
git at osgeo.org
Tue Jun 27 12:34:36 PDT 2023
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 20efe13b6c8e743cbb7b1cdebb7fad4e21b02324 (commit)
from 1985836e47d4566a978d0b298ae2a86b89b6b283 (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 20efe13b6c8e743cbb7b1cdebb7fad4e21b02324
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Tue Jun 27 12:34:28 2023 -0700
Slightly simpler handling of datum list to read srid
diff --git a/postgis/gserialized_spgist_3d.c b/postgis/gserialized_spgist_3d.c
index 8ee0cb38b..886338a8c 100644
--- a/postgis/gserialized_spgist_3d.c
+++ b/postgis/gserialized_spgist_3d.c
@@ -430,20 +430,21 @@ PGDLLEXPORT Datum gserialized_spgist_picksplit_3d(PG_FUNCTION_ARGS)
double *highYs = palloc(sizeof(double) * in->nTuples);
double *lowZs = palloc(sizeof(double) * in->nTuples);
double *highZs = palloc(sizeof(double) * in->nTuples);
- const BOX3D *box = DatumGetBox3DP(in->datums[0]); /* we use to fetch srid */
- int32_t srid = box->srid;
+ int32_t srid = SRID_UNKNOWN;
/* Calculate median of all 6D coordinates */
for (i = 0; i < in->nTuples; i++)
{
BOX3D* box_in = DatumGetBox3DP(in->datums[i]);
-
lowXs[i] = box_in->xmin;
highXs[i] = box_in->xmax;
lowYs[i] = box_in->ymin;
highYs[i] = box_in->ymax;
lowZs[i] = box_in->zmin;
highZs[i] = box_in->zmax;
+
+ if (i == 0)
+ srid = box_in->srid;
}
qsort(lowXs, in->nTuples, sizeof(double), compareDoubles);
-----------------------------------------------------------------------
Summary of changes:
postgis/gserialized_spgist_3d.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list