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:/
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
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
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:/
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
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