[Qgis-user] path to basic world map
Andrea Giudiceandrea
andreaerdna at libero.it
Thu Feb 6 04:43:46 PST 2025
> Stefan Giese (WhereGroup) stefan.giese at wheregroup.com
> Thu Feb 6 02:56:04 PST 2025
> I would better use:
>
> |QgsApplication.prefixPath() |
Actually QGIS uses QgsApplication.pkgDataPath()
***
https://github.com/qgis/QGIS/blob/6b4ffb39a887a4f10d04373f27250b6d7b1f2293/src/app/qgsstatusbarcoordinateswidget.cpp#L281-L294
fileName = QgsApplication::pkgDataPath() + QStringLiteral(
"/resources/data/world_map.gpkg|layername=countries" )
***
Anyway, on Windows (OSGeo4W), it looks like that
QgsApplication.prefixPath() is the same as QgsApplication.pkgDataPath(),
but that may be not true on all systems.
Regards.
Andrea
More information about the QGIS-User
mailing list