PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ gidx_brin_inclusion_merge()

static GIDX * gidx_brin_inclusion_merge ( GIDX *  gidx_key,
GIDX *  gidx_geom 
)
static

Definition at line 196 of file brin_nd.c.

197{
198 if (!gidx_contains(gidx_key, gidx_geom))
199 {
200 for (uint32_t i = 0; i < GIDX_NDIMS(gidx_key); i++)
201 {
202 /* Adjust minimums */
203 GIDX_SET_MIN(gidx_key, i,
204 Min(GIDX_GET_MIN(gidx_key,i),GIDX_GET_MIN(gidx_geom,i)));
205 /* Adjust maximums */
206 GIDX_SET_MAX(gidx_key, i,
207 Max(GIDX_GET_MAX(gidx_key,i),GIDX_GET_MAX(gidx_geom,i)));
208 }
209 }
210
211 return gidx_key;
212}
bool gidx_contains(GIDX *a, GIDX *b)

References gidx_contains().

Referenced by geog_brin_inclusion_merge(), geom3d_brin_inclusion_merge(), and geom4d_brin_inclusion_merge().

Here is the call graph for this function:
Here is the caller graph for this function: