[vector file writer] LIBKML driver also requires coordinates to be in wgs84

This commit is contained in:
nirvn 2020-07-21 16:55:31 +07:00 committed by Nyall Dawson
parent f0b62fb001
commit c8c0dcdf0b

View File

@ -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" ) )
{