Override, for the considered context, the path and file of the local * cache of grid chunks. * * @param ctx PROJ context, or NULL * @param fullname Full name to the cache (encoded in UTF-8). If set to NULL, * caching will be disabled. * @since 7.0 */
| 2423 | * @since 7.0 |
| 2424 | */ |
| 2425 | void proj_grid_cache_set_filename(PJ_CONTEXT *ctx, const char *fullname) { |
| 2426 | if (ctx == nullptr) { |
| 2427 | ctx = pj_get_default_ctx(); |
| 2428 | } |
| 2429 | // Load ini file, now so as to override its settings |
| 2430 | pj_load_ini(ctx); |
| 2431 | ctx->gridChunkCache.filename = fullname ? fullname : std::string(); |
| 2432 | } |
| 2433 | |
| 2434 | // --------------------------------------------------------------------------- |
| 2435 |