MCPcopy Create free account
hub / github.com/OSGeo/PROJ / proj_grid_cache_set_enable

Function proj_grid_cache_set_enable

src/networkfilemanager.cpp:2406–2413  ·  view source on GitHub ↗

Enable or disable the local cache of grid chunks * * This overrides the setting in the PROJ configuration file. * * @param ctx PROJ context, or NULL * @param enabled TRUE if the cache is enabled. * @since 7.0 */

Source from the content-addressed store, hash-verified

2404 * @since 7.0
2405 */
2406void proj_grid_cache_set_enable(PJ_CONTEXT *ctx, int enabled) {
2407 if (ctx == nullptr) {
2408 ctx = pj_get_default_ctx();
2409 }
2410 // Load ini file, now so as to override its settings
2411 pj_load_ini(ctx);
2412 ctx->gridChunkCache.enabled = enabled != FALSE;
2413}
2414
2415// ---------------------------------------------------------------------------
2416

Callers 1

TESTFunction · 0.85

Calls 2

pj_get_default_ctxFunction · 0.85
pj_load_iniFunction · 0.85

Tested by 1

TESTFunction · 0.68