Skip to content

Commit

Permalink
VSIMemGenerateHiddenFilename(): use in ogr_geocoding
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Sep 16, 2024
1 parent de372d8 commit 9119a48
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ogr/ogr_geocoding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,9 @@ static OGRLayer *OGRGeocodeGetCacheLayer(OGRGeocodingSessionH hSession,
(EQUAL(osExt, "SQLITE") || EQUAL(osExt, "CSV")))
{
CPLFree(hSession->pszCacheFilename);
hSession->pszCacheFilename = CPLStrdup(CPLSPrintf(
"/vsimem/%s.%s", CACHE_LAYER_NAME, osExt.c_str()));
hSession->pszCacheFilename =
CPLStrdup(VSIMemGenerateHiddenFilename(CPLSPrintf(
"%s.%s", CACHE_LAYER_NAME, osExt.c_str())));
CPLDebug("OGR", "Switch geocode cache file to %s",
hSession->pszCacheFilename);
poDS = reinterpret_cast<OGRDataSource *>(
Expand Down

0 comments on commit 9119a48

Please sign in to comment.