-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide symbology export options when not compatible #5473
Conversation
@@ -57,6 +57,7 @@ QgsVectorLayerSaveAsDialog::QgsVectorLayerSaveAsDialog( QgsVectorLayer *layer, i | |||
mLayerExtent = layer->extent(); | |||
} | |||
setup(); | |||
|
|||
if ( !( options & Symbology ) ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i wonder what does return this condition as it seems to be never met
fieldsAsDisplayedValues = ( sFormat == QLatin1String( "CSV" ) || sFormat == QLatin1String( "XLS" ) || sFormat == QLatin1String( "XLSX" ) || sFormat == QLatin1String( "ODS" ) ); | ||
} | ||
|
||
// Show symbology options only for some formats | ||
if ( sFormat == QLatin1String( "DXF" ) || sFormat == QLatin1String( "KML" ) || sFormat == QLatin1String( "MapInfo File" ) || sFormat == QLatin1String( "MapInfo MIF" ) ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There might be a better way to list the concerned formats, i suppose
Refs OSGeo/gdal#260 |
Ah, this always bugged me too! Thanks @DelazJ and @nyalldawson for working on this! How to proceed now? Wait for the GDAL capability changes, and then use these too? |
I don't know what are the plans but looks like we'll be waiting for gdal cleaner fix. |
cleaner fix is gdal >= 2.3 only, so this is acceptable for now |
In the vector layer "Save As..." dialog there are options to export features/layer with a symbology. From what i understood it has to do with OGR styles and apply to only some formats. But these options were always shown whatever the selected format.
The PR also hides the "select fields..." frame instead of simply disable it.