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

◆ GetRtreeCache()

RTREE_POLY_CACHE * GetRtreeCache ( FunctionCallInfo  fcinfo,
GSERIALIZED g1 
)

Checks for a cache hit against the provided geometry and returns a pre-built index structure (RTREE_POLY_CACHE) if one exists.

Otherwise builds a new one and returns that.

Definition at line 432 of file lwgeom_rtree.c.

433{
434 RTreeGeomCache* cache = (RTreeGeomCache*)GetGeomCache(fcinfo, &RTreeCacheMethods, g1, NULL);
435 RTREE_POLY_CACHE* index = NULL;
436
437 if ( cache )
438 index = cache->index;
439
440 return index;
441}
static GeomCacheMethods RTreeCacheMethods
The tree structure used for fast P-i-P tests by point_in_multipolygon_rtree()
RTREE_POLY_CACHE * index

References RTreeGeomCache::index, and RTreeCacheMethods.

Referenced by contains(), coveredby(), covers(), and ST_Intersects().

Here is the caller graph for this function: