Skip to content
Permalink
Browse files

Disable VRT checkbox for Geopackages in the 'Save Raster Layer As' di…

…alog. It doesn't make much sense to create virtual raster from GeoPackages, while it may break the layer uri when the output table name is specified.
  • Loading branch information
borysiasty committed Sep 12, 2018
1 parent 60fa8ea commit fd0d5575ff21b093ca9d4bf4173c39003785b865
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/gui/qgsrasterlayersaveasdialog.cpp
@@ -321,12 +321,15 @@ void QgsRasterLayerSaveAsDialog::mFormatComboBox_currentIndexChanged( const QStr
}
mFilename->setFilter( filter );

// Disable mTileModeCheckBox for GeoPackages
mTileModeCheckBox->setEnabled( outputFormat() != QStringLiteral( "GPKG" ) );
mFilename->setConfirmOverwrite( outputFormat() != QStringLiteral( "GPKG" ) );
mLayerName->setEnabled( outputFormat() == QStringLiteral( "GPKG" ) );
if ( mLayerName->isEnabled() )
{
QString layerName = QFileInfo( mFilename->filePath() ).baseName();
mLayerName->setText( layerName );
mTileModeCheckBox->setChecked( false );
}
else
{

0 comments on commit fd0d557

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