#
USE_STATS=1
+#
+# Set AUTOCACHE_BBOX to 0 if you want finer control over
+# bounding box computation and caching for your geometries.
+#
+AUTOCACHE_BBOX ?= 1
+
#
# Root of the PostgreSQL source tree
# If you are not building from within postgresql 'contrib' directory
override CFLAGS += -I$(PROJ_DIR)/include -DUSE_PROJ
endif
+override CFLAGS += -I$(PROJ_DIR)/include -DAUTOCACHE_BBOX=$(AUTOCACHE_BBOX)
+
override DLLLIBS += $(BE_DLLLIBS)
override CXXFLAGS := $(CFLAGS)
char
is_worth_caching_pglwgeom_bbox(PG_LWGEOM *in)
{
+#if ! AUTOCACHE_BBOX
+ return false;
+#endif
if ( TYPE_GETTYPE(in->type) == POINTTYPE ) return false;
return true;
}
char
is_worth_caching_lwgeom_bbox(LWGEOM *in)
{
+#if ! AUTOCACHE_BBOX
+ return false;
+#endif
if ( TYPE_GETTYPE(in->type) == POINTTYPE ) return false;
return true;
}