Skip to content

Commit

Permalink
[vector] Do not enable embedded feature symbology when loading KML da…
Browse files Browse the repository at this point in the history
…tasets through the KML driver
  • Loading branch information
nirvn authored and nyalldawson committed Dec 1, 2022
1 parent 046c6ea commit c816873
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/providers/ogr/qgsogrprovider.cpp
Expand Up @@ -3002,7 +3002,8 @@ void QgsOgrProvider::computeCapabilities()
ability |= TransactionSupport;
}

if ( GDALGetMetadataItem( mOgrLayer->driver(), GDAL_DCAP_FEATURE_STYLES, nullptr ) != nullptr )
// GDAL KML driver doesn't support reading feature style, skip metadata check until GDAL can separate reading/writing capability
if ( mGDALDriverName != QLatin1String( "KML" ) && GDALGetMetadataItem( mOgrLayer->driver(), GDAL_DCAP_FEATURE_STYLES, nullptr ) != nullptr )
{
ability |= FeatureSymbology;
ability |= CreateRenderer;
Expand Down

0 comments on commit c816873

Please sign in to comment.