Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update src/providers/wfs/qgsbackgroundcachedshareddata.cpp
Co-authored-by: Even Rouault <even.rouault@spatialys.com>
  • Loading branch information
2 people authored and github-actions[bot] committed Jan 13, 2023
1 parent fb212a8 commit 68b7c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/wfs/qgsbackgroundcachedshareddata.cpp
Expand Up @@ -227,7 +227,7 @@ bool QgsBackgroundCachedSharedData::createCache()
return false;
}
const QString vsimemFilename = QStringLiteral( "/vsimem/qgis_cache_template_%1/features.sqlite" ).arg( reinterpret_cast< quintptr >( this ), QT_POINTER_SIZE * 2, 16, QLatin1Char( '0' ) );
mCacheTablename = CPLGetBasename( vsimemFilename.toLocal8Bit().constData() );
mCacheTablename = CPLGetBasename( vsimemFilename.toUtf8().constData() );
VSIUnlink( vsimemFilename.toUtf8().constData() );
const char *apszOptions[] = { "INIT_WITH_EPSG=NO", "SPATIALITE=YES", nullptr };
GDALDatasetH hDS = GDALCreate( hDrv, vsimemFilename.toUtf8().constData(), 0, 0, 0, GDT_Unknown, const_cast<char **>( apszOptions ) );
Expand Down

0 comments on commit 68b7c77

Please sign in to comment.