PostGIS  3.7.0dev-r@@SVN_REVISION@@
lwgeom_itree.c File Reference
#include "postgres.h"
#include "funcapi.h"
#include "fmgr.h"
#include "liblwgeom.h"
#include "liblwgeom_internal.h"
#include "intervaltree.h"
#include "lwgeom_pg.h"
#include "lwgeom_cache.h"
#include "lwgeom_itree.h"
Include dependency graph for lwgeom_itree.c:

Go to the source code of this file.

Data Structures

struct  IntervalTreeGeomCache
 

Functions

Datum ST_IntersectsIntervalTree (PG_FUNCTION_ARGS)
 
static int IntervalTreeBuilder (const LWGEOM *lwgeom, GeomCache *geomcache)
 Builder, freeer and public accessor for cached IntervalTrees. More...
 
static int IntervalTreeFreer (GeomCache *geomcache)
 
static GeomCache * IntervalTreeAllocator (void)
 
IntervalTreeGetIntervalTree (FunctionCallInfo fcinfo, SHARED_GSERIALIZED *g1)
 Checks for a cache hit against the provided geometry and returns a pre-built index structure (RTREE_POLY_CACHE) if one exists. More...
 
bool itree_pip_contains (const IntervalTree *itree, const LWGEOM *lwpoints)
 
bool itree_pip_covers (const IntervalTree *itree, const LWGEOM *lwpoints)
 
bool itree_pip_intersects (const IntervalTree *itree, const LWGEOM *lwpoints)
 
 PG_FUNCTION_INFO_V1 (ST_IntersectsIntervalTree)
 

Variables

static GeomCacheMethods IntervalTreeCacheMethods