Skip to content
Permalink
Browse files

Adds a critical message if GDAL is not built with GPKG support

  • Loading branch information
lbartoletti authored and nyalldawson committed Feb 11, 2021
1 parent ab5e5b3 commit 2b8251ad41ee2653e1fd5cdfc6e225c5ba996e14
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/dwg/qgsdwgimportdialog.cpp
@@ -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();
}

0 comments on commit 2b8251a

Please sign in to comment.