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 */
| 2404 | * @since 7.0 |
| 2405 | */ |
| 2406 | void 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 |