Skip to content

Commit

Permalink
Adds a critical message if GDAL is not built with GPKG support
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti authored and nyalldawson committed Feb 11, 2021
1 parent ab5e5b3 commit 2b8251a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/dwg/qgsdwgimportdialog.cpp
Expand Up @@ -88,6 +88,11 @@ QgsDwgImportDialog::QgsDwgImportDialog( QWidget *parent, Qt::WindowFlags f )
mCrsSelector->setMessage( tr( "Select the coordinate reference system for the dxf file. "
"The data points will be transformed from the layer coordinate reference system." ) );


if ( ! QgsVectorFileWriter::supportedFormatExtensions().contains( QStringLiteral( "gpkg" ) ) )
{
bar->pushMessage( tr( "GDAL/OGR not built with GPKG (sqlite3) support. You will not be able to export the DWG in a GPKG." ), Qgis::Critical );
}
pbLoadDatabase_clicked();
updateUI();
}
Expand Down

0 comments on commit 2b8251a

Please sign in to comment.