Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[vector file writer] LIBKML driver also requires coordinates to be in…
… wgs84

(cherry picked from commit c8c0dcd)
  • Loading branch information
nirvn authored and nyalldawson committed Aug 15, 2020
1 parent a57436a commit c3f3f0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsvectorfilewriter.cpp
Expand Up @@ -419,7 +419,7 @@ void QgsVectorFileWriter::init( QString vectorFileName,
}

// consider spatial reference system of the layer
if ( driverName == QLatin1String( "KML" ) || driverName == QLatin1String( "GPX" ) )
if ( driverName == QLatin1String( "KML" ) || driverName == QLatin1String( "LIBKML" ) || driverName == QLatin1String( "GPX" ) )
{
if ( srs.authid() != QStringLiteral( "EPSG:4326" ) )
{
Expand Down

0 comments on commit c3f3f0d

Please sign in to comment.