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

Function proj_grid_cache_set_filename

src/networkfilemanager.cpp:2425–2432  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

2423 * @since 7.0
2424 */
2425void 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

Callers 1

TESTFunction · 0.85

Calls 2

pj_get_default_ctxFunction · 0.85
pj_load_iniFunction · 0.85

Tested by 1

TESTFunction · 0.68