PostGIS  2.1.10dev-r@@SVN_REVISION@@
PrepGeomCache* GetPrepGeomCache ( FunctionCallInfoData *  fcinfo,
GSERIALIZED g1,
GSERIALIZED g2 
)

Given a couple potential geometries and a function call context, return a prepared structure for one of them, if such a structure doesn't already exist.

If it doesn't exist, and there is a cache hit, ensure that the structure is built for next time. Most of the work is done by the GetGeomCache generic function, but we pass in call-backs to handle building and freeing the GEOS PreparedGeometry structures we need for this particular caching strategy.

Definition at line 420 of file lwgeom_geos_prepared.c.

References PrepGeomCacheMethods.

Referenced by contains(), containsproperly(), covers(), and geos_intersects().

421 {
422  return (PrepGeomCache*)GetGeomCache(fcinfo, &PrepGeomCacheMethods, g1, g2);
423 }
static GeomCacheMethods PrepGeomCacheMethods

Here is the caller graph for this function: