mirror of
https://github.com/qgis/QGIS.git
synced 2025-06-19 00:02:48 -04:00
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:
parent
d4e22be2c6
commit
c76110ab4e
BIN
resources/data/world_map.gpkg
Normal file
BIN
resources/data/world_map.gpkg
Normal file
Binary file not shown.
@ -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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user