Skip to content
Permalink
Browse files

Avoid CRS detection via .qpj when using GDAL3/PROJ6 (fixes #34211)

(cherry picked from commit 012ee83)
  • Loading branch information
nirvn authored and nyalldawson committed Feb 3, 2020
1 parent db1b3df commit 014ea4110b3c6f6a602a0288c20a7fe088474034
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/core/qgsvectorfilewriter.cpp
@@ -503,6 +503,7 @@ void QgsVectorFileWriter::init( QString vectorFileName,
CPLSetConfigOption( "SHAPE_ENCODING", nullptr );
}

#if PROJ_VERSION_MAJOR<6
if ( srs.isValid() )
{
if ( mOgrDriverName == QLatin1String( "ESRI Shapefile" ) )
@@ -526,6 +527,7 @@ void QgsVectorFileWriter::init( QString vectorFileName,
#endif
}
}
#endif

if ( !mLayer )
{

0 comments on commit 014ea41

Please sign in to comment.
You can’t perform that action at this time.