Re: [Qgis-user] path to basic world map

2025-02-11 Thread Nyall Dawson via QGIS-User
On Thu, 6 Feb 2025 at 22:44, Andrea Giudiceandrea via QGIS-User wrote: > > > 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:/

Re: [Qgis-user] path to basic world map

2025-02-06 Thread Andrea Giudiceandrea via QGIS-User
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/qgsstatusbarcoordinates

Re: [Qgis-user] path to basic world map

2025-02-06 Thread Stefan Giese (WhereGroup) via QGIS-User
I would better use: |QgsApplication.prefixPath() | since the qgis environment variable QGIS_PREFIX_PATH is only inside QGIS avaiable, not from the OS Am 06.02.2025 um 11:46 schrieb Jacques Beilin via QGIS-User: Hi, QGIS_PREFIX_PATH does not seem to be set. os.getenv('QGIS_PREFIX_PATH') re

Re: [Qgis-user] path to basic world map

2025-02-06 Thread Jacques Beilin via QGIS-User
Hi, QGIS_PREFIX_PATH does not seem to be set. os.getenv('QGIS_PREFIX_PATH') return none. Regards, Jacques Le 06/02/2025 à 10:38, Stefan Giese (WhereGroup) via QGIS-User a écrit : Hi, may be you can use the qgis environment variable QGIS_PREFIX_PATH which is on my computer (Windows11) *C:/

Re: [Qgis-user] path to basic world map

2025-02-06 Thread Stefan Giese (WhereGroup) via QGIS-User
Hi, may be you can use the qgis environment variable QGIS_PREFIX_PATH which is on my computer (Windows11) *C:/OSGEO4W/apps/qgis* and the world map is in C:/OSGEO4W/apps/qgis*/resources/data/world_map.gpkg* Best regards Stefan Am 06.02.2025 um 10:15 schrieb Jacques Beilin via QGIS-User: He

[Qgis-user] path to basic world map

2025-02-06 Thread Jacques Beilin via QGIS-User
Hello, A local world map can be loaded by writing "world" in the coordinate box. Is there a way to load it from a python plugin ? It seems that the file is stored in /usr/share/qgis/resources/data/world_map.gpkg on linux but is there a way to find this path on different platforms ? Regards