Updated the 'world' easter egg to work with GeoPackage.

The new GeoPackage contains the features + styling of the pre-existing world_map.shp and world_map.qml.
This commit is contained in:
arongergely 2019-07-09 23:27:14 +02:00 committed by Nyall Dawson
parent d4e22be2c6
commit c76110ab4e
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -227,7 +227,7 @@ void QgsStatusBarCoordinatesWidget::world()
{
return;
}
QString fileName = QgsApplication::pkgDataPath() + QStringLiteral( "/resources/data/world_map.shp" );
QString fileName = QgsApplication::pkgDataPath() + QStringLiteral( "/resources/data/world_map.gpkg|layername=countries" );
QFileInfo fileInfo = QFileInfo( fileName );
const QgsVectorLayer::LayerOptions options { QgsProject::instance()->transformContext() };
QgsVectorLayer *layer = new QgsVectorLayer( fileInfo.absoluteFilePath(),